Wordpress 重写规则不´;不能使用语言(404)

Wordpress 重写规则不´;不能使用语言(404),wordpress,.htaccess,mod-rewrite,qtranslate,Wordpress,.htaccess,Mod Rewrite,Qtranslate,两天以来我一直在寻找解决方案,但没有找到解决方案! 我加了两个来说明问题,因为我总是得到一个404。。。 如果有人能帮我解决这个问题就太好了 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^seefracht-spedition\.htm http://www.sats-logistics.com/seefracht-spedition/ [R=301,L,NC] RewriteRule ^l

两天以来我一直在寻找解决方案,但没有找到解决方案! 我加了两个来说明问题,因为我总是得到一个404。。。 如果有人能帮我解决这个问题就太好了

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteRule ^seefracht-spedition\.htm http://www.sats-logistics.com/seefracht-spedition/ [R=301,L,NC]
RewriteRule ^luftfracht-spedition\.htm http://www.sats-logistics.com/luftfracht-spedition/ [R=301,L,NC]
RewriteRule ^service-zollabwicklung\.htm http://www.sats-logistics.com/service-zollabwicklung/ [R=301,L,NC]
RewriteRule ^lager-logistik\.htm http://www.sats-logistics.com/lager-logistik/ [R=301,L,NC]
RewriteRule ^service-hafenabwicklung\.htm http://www.sats-logistics.com/service-hafenabwicklung/ [R=301,L,NC]
RewriteRule ^umzug-spedition\.htm http://www.sats-logistics.com/umzug-spedition/  [R=301,L,NC]
RewriteRule ^kontakt-sats\.htm http://www.sats-logistics.com/kontakt-sats/ [R=301,L,NC]
RewriteRule ^standorte-sats\.htm http://www.sats-logistics.com/standorte-sats/ [R=301,L,NC]
RewriteRule ^downloads\.htm http://www.sats-logistics.com/downloads/ [R=301,L,NC]
RewriteRule ^impressum\.htm http://www.sats-logistics.com/impressum/ [R=301,L,NC]
RewriteRule ^news.php http://www.sats-logistics.com/news/ [R=301,L,NC]
RewriteRule ^links\.htm http://www.sats-logistics.com/links/ [R=301,L,NC]
RewriteRule ^daten/speditionsauftrag-luftfracht.pdf http://www.sats-logistics.com/download/speditionsauftrag-luftfracht.pdf [R=301,L,NC]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
AddHandler x-mapp-php5  .php

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
我从两天以来一直在寻找解决方案

你应该早点来Stackoverflow:p

更改规则的顺序并删除起始斜杠:

RewriteEngine On
RewriteBase /

RewriteRule ^luftfracht-spedition\.htm$ http://www.sats-logistics.com/luftfracht-spedition [R=301,L,NC]
RewriteRule ^en/custom-brokerage\.htm$ http://www.sats-logistics.com/en/custom-brokerage [R=301,L,NC]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
我从两天以来一直在寻找解决方案

你应该早点来Stackoverflow:p

更改规则的顺序并删除起始斜杠:

RewriteEngine On
RewriteBase /

RewriteRule ^luftfracht-spedition\.htm$ http://www.sats-logistics.com/luftfracht-spedition [R=301,L,NC]
RewriteRule ^en/custom-brokerage\.htm$ http://www.sats-logistics.com/en/custom-brokerage [R=301,L,NC]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

非常感谢您的快速帮助!!!!!!!!第一条规则现在起作用,但第二条规则不起作用。。。这是我添加的代码:RewriteBase/RewriteRule^luftfracht speedition.htm$[R=301,L]RewriteRule^en/custom brokerage.htm$[R=301,L]RewriteRule^index\.php$-[L]RewriteCond%{REQUEST_FILENAME}-f RewriteCond%{REQUEST_FILENAME}-重写规则/index.php[L]实际上它也在工作,我刚刚输入了
http://www.sats-logistics.com/en/custom-brokerage.htm
它变成了
http://www.sats-logistics.com/custom-brokerage/
在我的浏览器中。这就是问题所在!它应该重定向到以英语查看站点。现在我有了英文URL,但有了德语内容。所有用另一种语言(/en/)删除网站的重定向现在都可以正常工作了!:-)如果你有其他问题的解决方案就好了!
/en/
文件夹中也有.htaccess吗?非常感谢您的快速帮助!!!!!!!!第一条规则现在起作用,但第二条规则不起作用。。。这是我添加的代码:RewriteBase/RewriteRule^luftfracht speedition.htm$[R=301,L]RewriteRule^en/custom brokerage.htm$[R=301,L]RewriteRule^index\.php$-[L]RewriteCond%{REQUEST_FILENAME}-f RewriteCond%{REQUEST_FILENAME}-重写规则/index.php[L]实际上它也在工作,我刚刚输入了
http://www.sats-logistics.com/en/custom-brokerage.htm
它变成了
http://www.sats-logistics.com/custom-brokerage/
在我的浏览器中。这就是问题所在!它应该重定向到以英语查看站点。现在我有了英文URL,但有了德语内容。所有用另一种语言(/en/)删除网站的重定向现在都可以正常工作了!:-)如果你有其他问题的解决方案就好了!
/en/
文件夹中是否也有.htaccess?