移动站点时Htaccess问题


htaccess issue when moving site

我有一个站点,我已经移动到不同服务器上的测试区域。URL为:

http://www.example.co.uk/clientarea/royston/the_team(这不是一个活动的网站,所以链接实际上不会工作)

当该站点在实时服务器上时,它应该是:

http://www.example.co.uk/the_team

我有一个像这样的htaccess文件:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
##Remove Trailing Slashes
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
##Ignore
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{REQUEST_URI} !^/css
RewriteCond %{REQUEST_URI} !^/images
RewriteCond %{REQUEST_URI} !^/includes
RewriteCond %{REQUEST_URI} !^/internal
RewriteCond %{REQUEST_URI} !^/modules
RewriteCond %{REQUEST_URI} !^/scripts
##Remove .php from filename
RewriteCond %{REQUEST_FILENAME}'.php -f
RewriteRule ^([^.]+)$ /$1.php [L]

我需要知道如何改变htaccess,使URL将在测试站点上工作。

多谢

更改这些行:

RewriteBase /clientarea/royston/

RewriteRule ^([^.]+)$ /clientarea/royston/$1.php [L]

EDIT:你也可以像这样使用你的ReweireRule,这样你就不需要改变它了

RewriteRule ^([^.]+)$ $1.php [L]