开发者

Opencart .htaccess - allows access to specified folder

I've got an OpenCart site, but need to create an addtional /test dir开发者_StackOverflow社区ectory which is accessible.

By default, all requests are sent to OpenCart. I'm trying to make it send all except /test. I've tried a few suggestions on this site already, but either nothing happens, or I get a 500 Internal Server Error.

This is the rewrite part of the OpenCart provided .htacccess:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

I think I need a line like the following after RewriteBase, but can't get anything working yet.

RewriteCond %{REQUEST_URI} !^/test

Thanks!


I think

RewriteCond %{REQUEST_URI} !^test/(.*)

should do it


RewriteBase /YOUR_SUB_DIR/ replace 'YOUR_SUB_DIR' with yours

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜