Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine on
- #### TJOSELFSTORAGE ####
- RewriteCond %{ENV:CARET_ENV} live [NC]
- RewriteCond %{HTTP_HOST} !^www.tjoselfstorage.com$ [NC]
- RewriteCond %{HTTP_HOST} ((.*).(org|net|com)|(.*).(.*).(org|net|com)|[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}) [NC]
- RewriteRule ^(.*)$ https://www.tjoselfstorage.com/$1 [R,L]
- RewriteRule (^/images.*) https://www.tjoselfstorage.com? [R=301,L]
- RewriteCond %{REQUEST_URI} !^/$
- RewriteCond %{REQUEST_FILENAME} !__^.php
- RewriteRule ^(.*)/$ /$1 [R=301,L]
- RewriteCond %{REQUEST_FILENAME} !-f [OR]
- RewriteCond %{REQUEST_FILENAME} !resources
- RewriteCond %{REQUEST_FILENAME} !__^.php
- RewriteRule (.*) __^.php/$0 [L
Add Comment
Please, Sign In to add comment