【发布时间】:2014-12-22 09:53:11
【问题描述】:
我需要从
转发/重定向域 http://local.abcxyz.com/be/country/CN/BE
到
http://local.abcxyz.com/be/country/visum-china/BE
我如何使用 .htaccess 来做到这一点?
我当前的 htaccess 文件是这样的
RewriteEngine On
# If the file or directory exists, show it
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
# Blank queries get sent to the index
#RewriteRule ^$ index.php [L]
# All other queries get sent to the index as index.php/whatever
#RewriteRule ^(.*)$ index.php/$1 [L]
RewriteCond $1 !^(index\.php|images|swf|uploads|js|css|robots\.txt)
RewriteRule ^(.*)$ /be/index.php/$1 [L]
此 htaccess 存在于 be 文件夹中。
【问题讨论】:
标签: php linux .htaccess redirect