Posted By

zwebapp on 08/17/12


Tagged

htaccess


Versions (?)

Remove /index.php


 / Published in: Apache
 

Removing index.php to url. e.g. www.yourwebsite.com/index.php -> www.yourwebsite.com/

  1. RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
  2. RewriteRule ^(([^/]+/)*)index\.php$ http://%{HTTP_HOST}/ [R=301,NS,L]

Report this snippet  

You need to login to post a comment.