2016-06-13 131 views
2

我對這個網址的WordPress的:當我嘗試WordPress的永久鏈接與斜線給404

http://www.website.com/blog/%postname% 

http://www.website.com/blog/

如果我嘗試打開任何文章的網址只作爲工作把尾部的斜線放在最後給出錯誤404.

http://www.website.com/blog/%postname%/ 

這是我的.htaccess

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

回答

0

我發現了錯誤:

這是URLSCAN它擋住了我的網址,因爲他們中的一些包含點。

例如:http://website.com/blog/test-3.0/style/foo.css

我打開位於Urlscan.ini文件:

%windir%\system32\inetsrv\urlscan\UrlScan.ini 

而改變AllowDotInPath = 0AllowDotInPath = 1

0

也許您可以嘗試重新生成永久鏈接並在Wordpress設置中設置自定義結構。

http://www.website.com/%category%/%postname%/ 
+0

我不能改變網址很容易因爲SEO。它的工作原理是:'http://www.website.com/blog/%postname%/',但今天給我所有網頁404。 – Coluh