Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. RewriteEngine On
  2. RewriteCond %{HTTP_HOST} !^$
  3. RewriteCond %{HTTP_HOST} !^www. [NC]
  4. RewriteCond %{HTTPS}s ^on(s)|
  5. RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  6.  
  7. Options +FollowSymLinks
  8. RewriteCond %{SCRIPT_FILENAME} !-f
  9. RewriteCond %{SCRIPT_FILENAME} !-d
  10.  
  11. DirectoryIndex index.php
  12.  
  13. RewriteRule ^home/?$ index.php [L]
  14. RewriteRule ^([a-zA-Z0-9-]+)?$ static-page.php?slug=$1 [L]
  15.  
  16. DirectoryIndex index.php
  17. Options +FollowSymLinks -MultiViews
  18.  
  19. RewriteEngine On
  20.  
  21. RewriteCond %{HTTP_HOST} !^www. [NC]
  22. RewriteCond %{HTTPS}s ^on(s)|
  23. RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  24.  
  25. RewriteCond %{SCRIPT_FILENAME} -f [OR]
  26. RewriteCond %{SCRIPT_FILENAME} -d
  27. RewriteRule ^ - [L]
  28.  
  29. RewriteRule ^home/?$ index.php [L]
  30.  
  31. RewriteRule ^([a-zA-Z0-9-]+)?$ static-page.php?slug=$1 [L,QSA]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement