.htaccess cakephp站点域更改,有301个问题

.htaccess cakephp站点域更改,有301个问题,.htaccess,cakephp,redirect,http-status-code-301,.htaccess,Cakephp,Redirect,Http Status Code 301,我将我的cakephp站点从一个子域移到另一个域。我在htaccess文件中处理了永久重定向,但在重定向中,我丢失了整洁/干净的url处理 旧站点 iphone.game.org 新站点 游戏成就网 当前重定向的示例 iphone.gameaclements.org/games/jungle-swing-> gameAcquisitions.org/index.php?url=games/jungle swing 我想要的。。是 iphone.gameaclements.org/games/ju

我将我的cakephp站点从一个子域移到另一个域。我在htaccess文件中处理了永久重定向,但在重定向中,我丢失了整洁/干净的url处理

旧站点
iphone.game.org

新站点
游戏成就网

当前重定向的示例
iphone.gameaclements.org/games/jungle-swing-> gameAcquisitions.org/index.php?url=games/jungle swing

我想要的。。是
iphone.gameaclements.org/games/jungle-swing-> gameshighments.org/games/jungle-swing

以下是我的htaccess文件的外观

<IfModule mod_rewrite.c>

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
    RewriteCond %{HTTP_HOST} iphone.gameachievements.org
    RewriteRule (.*) http://gameachievements.org/$1 [R=301,L]
</IfModule>

重新启动发动机
重写cond%{REQUEST_FILENAME}-D
重写cond%{REQUEST_FILENAME}-F
重写规则^(.*)$index.php?url=$1[QSA,L]
重写cond%{HTTP_HOST}iphone.gameAchighments.org
重写规则(.*)http://gameachievements.org/$1[R=301,L]
感谢您的帮助 谢谢

m

先说:

RewriteCond %{HTTP_HOST} iphone.gameachievements.org
RewriteRule (.*) http://gameachievements.org/$1 [R=301,L]