2011-08-19 147 views
0

我使用wordpress最新版本。wordpress分頁錯誤?

目前我的博客設置爲自定義固定鏈接/index.php/%postname%/

http://abc.com/blog/index.php(工作正常)

但當點擊下一步按鈕進入到第2頁,它失敗。

它假設去http://abc.com/blog/index.php/page/2/

但去http://abc.com/blog/index.php/Index.php/page/2/

(被添加一個額外的/Index.php/ ....)

這隻會發生在第2頁。 在第2頁轉到第3頁,網址工作正常。

回答

0

這是很容易解決。

只要把線在 clean_url()函數在WP-包括/ formatting.php:

$url = str_replace('index.php/Index.php','index.php',$url); 

之前的任何干脆放棄這條線在函數的開頭 「if語句」

0

我認爲不需要使用index.php來查看着陸頁。

http://abc.com/blog/ 

上述網址不夠看着陸頁

http://abc.com/blog/index.php 

雖然我訪問上述url.i剛剛看到

sorry, we couldn't find that page 

Please try using the search above or follow one of the links below. 

考慮的index.php作爲頁面所以rewright規則。

然後我看不到任何分頁在url着陸頁。

謝謝