Guest User

Untitled

a guest
Sep 24th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. http:www.example.com/test [Works]
  2.  
  3. https:www.example.com/test [404 error page]
  4.  
  5. https:www.example.com/index.php?_route_=test
  6.  
  7. Options +FollowSymlinks
  8.  
  9. Options -Indexes
  10.  
  11. # Prevent Direct Access to files
  12. <FilesMatch "(?i)((.tpl|.twig|.ini|.log|(?<!robots).txt))">
  13. Require all denied
  14. </FilesMatch>
  15.  
  16.  
  17. # SEO URL Settings
  18. RewriteEngine On
  19.  
  20. RewriteBase /
  21. RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
  22. RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
  23. RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
  24. RewriteCond %{REQUEST_FILENAME} !-f
  25. RewriteCond %{REQUEST_FILENAME} !-d
  26. RewriteCond %{REQUEST_URI} !.*.(ico|gif|jpg|jpeg|png|js|css)
  27. RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
  28.  
  29. ## END Default opencart htaccess code
Add Comment
Please, Sign In to add comment