【发布时间】:2011-10-03 13:33:44
【问题描述】:
如果位置是本地或实时服务器,我正在尝试使用此 .htaccess 更改 RewriteBase。
Options +FollowSymlinks
RewriteEngine on
<LocationMatch "^/(bbtsrv02)/$">
#RewriteBase /beta/admin/
</LocationMatch>
RewriteCond %{REQUEST_URI} !index.php$
RewriteCond %{REQUEST_URI} !css/(.*)\.
RewriteCond %{REQUEST_URI} !img/(.*)\.
RewriteCond %{REQUEST_URI} !incs/(.*)\.
RewriteCond %{REQUEST_URI} !js/(.*)\.
RewriteCond %{REQUEST_URI} !upload/(.*)\.
RewriteCond %{REQUEST_URI} !widget/(.*)\.
RewriteRule ^(.*) index.php?_pd=$1 [NC,L]
一旦我删除LocationMatch,整个事情就会重新开始工作。我只需要更改RewriteBase 即可进行实时测试。
【问题讨论】:
标签: .htaccess live local locationmatch