htaccess rewrite filename

Discussion in 'Apache' started by simunlastre, Nov 23, 2012.

  1. #1
    helo

    i have a problem with seting up my htaccess file:

    here is how it look like...

    
    RewriteEngine On
    
    Options +FollowSymLinks
    
    RewriteBase / 
    
    RewriteCond %{HTTP_HOST} ^domain.org
    
    RewriteRule (.*) http://www.domain.org/$1 [R=301,L]
    
    RewriteRule !\.(js|ico|txt|gif|JPG|txt|swf|jpg|png|css|php|xml|html)$ index.php [QSA]
    
    Code (markup):
    i need to remove index.php from my url, (redirect http://www.domain.org/index.php to http://www.domain.org)

    anyone konow how to write it???

    thanks
     
    simunlastre, Nov 23, 2012 IP
  2. simunlastre

    simunlastre Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    anyone know how to do it?
     
    simunlastre, Nov 24, 2012 IP
  3. Jekwueme

    Jekwueme Greenhorn

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #3
    Jekwueme, Nov 28, 2012 IP
  4. simunlastre

    simunlastre Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks, but how can i do that wit htaccess
     
    simunlastre, Nov 28, 2012 IP