Guest User

Untitled

a guest
Mar 13th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RewriteEngine On
  2. RewriteBase /
  3.  
  4. <Files .*>
  5.     Order Deny,Allow
  6.     Deny From All
  7. </Files>
  8.  
  9. #Protect application and system files from being viewed
  10. RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
  11.  
  12. #Allow any files or directories that exist to be displayed directly
  13. RewriteCond %{REQUEST_FILENAME} !-f
  14. RewriteCond %{REQUEST_FILENAME} !-d
  15.  
  16.  
  17. RewriteCond %{QUERY_STRING} ^((page=([0-9]+)&)?category=([0-9]+))?$
  18. RewriteRule ^catalog\.php$ catalog/%4/%3? [R=301,L]
  19.  
  20. RewriteRule ^dostavka\.html$ dostavka [R=301,L]
  21. RewriteRule ^contacts\.html$ contacts [R=301,L]
  22. RewriteRule ^about\.html$ about [R=301,L]
  23.  
  24. #Rewrite all other URLs to index.php/URL
  25. RewriteRule .* index.php/$0 [PT]
Add Comment
Please, Sign In to add comment