Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http:www.example.com/test [Works]
- https:www.example.com/test [404 error page]
- https:www.example.com/index.php?_route_=test
- Options +FollowSymlinks
- Options -Indexes
- # Prevent Direct Access to files
- <FilesMatch "(?i)((.tpl|.twig|.ini|.log|(?<!robots).txt))">
- Require all denied
- </FilesMatch>
- # SEO URL Settings
- RewriteEngine On
- RewriteBase /
- RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
- RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
- RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_URI} !.*.(ico|gif|jpg|jpeg|png|js|css)
- RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
- ## END Default opencart htaccess code
Add Comment
Please, Sign In to add comment