Return to Snippet

Revision: 26407
at April 27, 2010 11:00 by mattkenefick


Initial Code
RewriteCond %{http_host} ^MyExample.com [nc]
RewriteRule ^(.*)$ http://www.MyExample.com/$1 [r=301,nc,L]

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Initial URL

                                

Initial Description
Removes trailing slashes from URLs, forces all urls to index.php

Initial Title
Remove Trailing Slashes, Force Index

Initial Tags
htaccess

Initial Language
Apache