2012-10-19 60 views
0

在我的網站的URL的.htaccess問題WordPress的

1)http://www.example.com/pt-br/perguntas-frequentes/ - 顯示錯誤

2)HTTP ://www.example.com/pt-br/perguntas-frequentes - 工作正常。

我使用WPML插件 代碼如下

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

回答

0

我用下面的代碼

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

嘗試這種解決方案:

RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_URI} !(.*)/$ 
RewriteRule ^(.*[^/])$ $1/ [L,R=301] 
+0

它顯示404錯誤修復問題 – Raj

+0

嘗試此變種 – RDK

+0

tripadvisorsuccess.com/pt-br/perguntas-freq uentes - 錯誤tripadvisorsuccess.com/pt-br/perguntas-frequentes - 錯誤!你能發佈工作頁面嗎?結束醋栗.htaccess – RDK