What I did:
- I have enabled SEO in backend and renamed the .htaccess file and it worked fine.
- My opencart installation is not in a subdirectory so i didn't have to alter RewriteBase /.
- Then, I've placed another .htaccess file inside the admin folder for password protecting it with basic authentication.
What happened:
- SEO worked fine
- When I tried to login to the admin i got Page not found message.
- When I removed the password protection htaccess from admin, then login to admin worked again.
What else I tried without success:
- I added various rewrite conditions to the opencart's htaccess but none of them seemed to work eg
after
Code: Select all
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
Code: Select all
RewriteCond %{REQUEST_URI} !^/admin/
I also tried numerous RewriteCond and RewriteRule syntaxes but it either didn't work or it gave me server error.
Can someone help in this matter ?