php - RewriteRule not working on password protected directory in Opencart -


i'm using opencart rewriterule create seo friendly url's, creates me .htaccess following in it:

rewriteengine on rewritecond %{request_uri} !^/emailer/ rewritebase / rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^([^?]*) index.php?_route_=$1 [l,qsa] 

so far, good. have folder called 'protected' want allow access to. ok doesn't rewrite directories, want password protect folder server side, cpanel automatically creates .htaccess within 'protected' folder following:

authtype basic authname "emailer" authuserfile "/home/mywebsite/.htpasswds/public_html/protected/passwd" require valid-user 

as .htaccess created first .htaccess won't allow folder exception , every time try visit password protected folder gives me 'page not found' error.

do need enter else in second .htaccess make work?


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -