default.txt 561 B

12345678910111213141516171819
  1. # rewrite`s rules for wordpress pretty url
  2. LoadModule rewrite_module modules/mod_rewrite.so
  3. RewriteCond %{REQUEST_FILENAME} !-f
  4. RewriteCond %{REQUEST_FILENAME} !-d
  5. RewriteRule . index.php [NC,L]
  6. ExpiresActive On
  7. ExpiresByType application/x-javascript "access plus 1 days"
  8. Order Deny,Allow
  9. Allow from All
  10. <Location /maps/>
  11. RewriteMap map txt:map.txt
  12. RewriteMap lower int:tolower
  13. RewriteCond %{REQUEST_URI} ^/([^/.]+)\.html$ [NC]
  14. RewriteCond ${map:${lower:%1}|NOT_FOUND} !NOT_FOUND
  15. RewriteRule .? /index.php?q=${map:${lower:%1}} [NC,L]
  16. </Location>