Htaccess help

Discussion in 'General Programming Chat' started by blackjack, May 2, 2010.

  1. blackjack

    blackjack Regular Member

    Joined:
    Nov 23, 2007
    Messages:
    276
    Likes Received:
    51
    Hi

    Can someone help me on this?

    I want this to achieve this

    When someone type this

    www.mydomain.com/keyword

    I want the actual URL to go to

    www.mydomain.com/index.php/keyword

    I think it is possible with htaccess but I have no clue how to do it.

    Is htaccess only way to do it?

    I only want to do this with only ONE domain.

    Thanks
     
  2. godmonkee

    godmonkee Regular Member

    Joined:
    Jan 12, 2009
    Messages:
    396
    Likes Received:
    769
    Occupation:
    IM
    Location:
    Gallifrey
    Last edited: May 2, 2010
  3. Grizzy

    Grizzy Senior Member

    Joined:
    Nov 11, 2008
    Messages:
    919
    Likes Received:
    1,001
    Just off the top of my head, you probably want something like this in your .htaccess:
    Code:
    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule (.*) index.php/$1/