Guest User

Untitled

a guest
Jan 10th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. RewriteEngine on
  2.  
  3.  
  4. #### TJOSELFSTORAGE ####
  5. RewriteCond %{ENV:CARET_ENV} live [NC]
  6. RewriteCond %{HTTP_HOST} !^www.tjoselfstorage.com$ [NC]
  7. 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]
  8.  
  9. RewriteRule ^(.*)$ https://www.tjoselfstorage.com/$1 [R,L]
  10.  
  11.  
  12. RewriteRule (^/images.*) https://www.tjoselfstorage.com? [R=301,L]
  13.  
  14.  
  15.  
  16. RewriteCond %{REQUEST_URI} !^/$
  17. RewriteCond %{REQUEST_FILENAME} !__^.php
  18. RewriteRule ^(.*)/$ /$1 [R=301,L]
  19.  
  20.  
  21. RewriteCond %{REQUEST_FILENAME} !-f [OR]
  22.  
  23. RewriteCond %{REQUEST_FILENAME} !resources
  24.  
  25. RewriteCond %{REQUEST_FILENAME} !__^.php
  26. RewriteRule (.*) __^.php/$0 [L
Add Comment
Please, Sign In to add comment