添加子目录时.htaccess文件中需要进行哪些更改

时间:2013-05-11 09:15:32

标签: php .htaccess subdomain

这是我的.htaccess文件:

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

现在出于测试目的,我在实际站点上创建了另一个目录名testproject。我应该如何更改当前的.htaccess文件?

1 个答案:

答案 0 :(得分:0)

只需将RewriteBase更改为

即可
RewriteBase /testproject