I am trying to make friendly urls, all the urls are working absolutely fine just 1 url is not working. I want
http://example.com/checkout/cart
to display the page from
http://example.com/index.php?route=checkout/cart
I tried lots of solutions but none of them was working.
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^checkout/cart /index.php?route=checkout/cart [L]
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Please Help, Thanks in Advance.
After trying lots of code, the Latest Htacces file has the following code
Options +FollowSymlinks
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
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]
RewriteRule ^(.*)/cart/? /index.php?route=checkout/checkout [L]
RewriteRule ^cart/? /index.php?route=checkout/cart [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]
There is no htaccess file in the sub directories, neither in checkout folder
Thanks :)