.htaccess Question

Discussion in 'Apache' started by ozman84, Dec 20, 2010.

  1. #1
    Hey Guys,

    just wondering how I can remove the /index.php trailing my URL using htaccess?

    Thanks
     
    ozman84, Dec 20, 2010 IP
  2. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
  3. ozman84

    ozman84 Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That URL doesnt help me im afraid mate :(

    ah sorry about that
     
    ozman84, Dec 21, 2010 IP
  4. gopkris2000

    gopkris2000 Peon

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I can't understand, why you will remove /index.php ? If you removed / it will server like http://domain.comindex.php instead of http://domain.com/index.php.
    Are you looking like FancyIndexing ??
     
    gopkris2000, Dec 22, 2010 IP
  5. ozman84

    ozman84 Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ozman84, Jan 10, 2011 IP
  6. ACME Squares

    ACME Squares Peon

    Messages:
    98
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The main choices are mod_rewrite or multiviews.
    The apache documentation under 'Content Negotiation' is relevant and interesting too.
     
    ACME Squares, Jan 11, 2011 IP
  7. jitendraag

    jitendraag Notable Member

    Messages:
    3,982
    Likes Received:
    324
    Best Answers:
    1
    Trophy Points:
    270
    #7
    A brute force method can be to redirect requests with ^index.php$ to domain/
     
    jitendraag, Jan 11, 2011 IP
  8. mario212

    mario212 Peon

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Make a 301 redirect from index.php to homepage.
     
    mario212, Jan 11, 2011 IP