|
Aug.31st,2006
|
Archived; click post to view.
Excerpt: This handy set of rules for mod_rewrite automatically redirects any URL ending in "/index.php" to the same URL ending in "/." It works for the root directory as well as subdirectories.RewriteCond %{THE_REQUEST} ^GET\ /.*/index\.(php|html)\ HTTPRewriteRule (.*)index\.(php|html)$ /$1 [R=301,L]For example, "http://www.example.com/subdirectory/index.php" would be redirected to "http://www.example.com/subdirectory/." This eliminates one of the peskier can…
| 4 Comments » |




















