2014-12-06 79 views
0

我在我的主機上有一個WordPress站點出現問題。在一個主機上有多個WordPress站點

Today I installed "Traffic Stats Widget" - plugin and I followed their instructions for installation. So , I did this: 

Create a robots.php file on the root directory of your blog: ie public_html/your-blog/ Paste the following code without // in it: 
# # 
Open .htaccess file in the same directory and paste this in it: 
RewriteRule robots.txt robots.php 

Make sure you have the 'RewriteEngine On' clause in place... 

Make sure you have a robots.txt file, even an empty one, on the root directory 

之後,我無法訪問我的所有子頁面。

這是我的網站的鏈接:

http://idealpvc-dev.com/websites/camel/

如果您嘗試訪問某些子頁面,你會得到錯誤404

我不知道爲什麼,因爲我恢復了我.htaccess文件,但它仍然無法正常工作。

此外,我與其他WordPress站點上的其他.htaccess文件進行了比較,但除文件夾名稱外沒有任何區別。

任何建議將不勝感激。

而且,以上是我的.htaccess的內容:

# BEGIN WordPress 

<IfModule mod_rewrite.c> 

RewriteEngine On 

RewriteBase /websites/camel/ 

RewriteRule ^index\.php$ - [L] 

RewriteCond %{REQUEST_FILENAME} !-f 

RewriteCond %{REQUEST_FILENAME} !-d 

RewriteRule . /websites/camel/index.php [L] 

</IfModule> 



# END WordPress 

站點位於/的public_html /網站/駱駝

在此先感謝

回答

1

使本作中,你的htaccess一個RewrieBase文件

RewriteBase http://idealpvc-dev.com/websites/camel/ 

而不是這個

RewriteBase /websites/camel/ 

,讓您的wordpress permalink默認從WordPress管理面板>設置>>永久>>>默認

+0

謝謝!這就對了! – PottaG 2014-12-06 14:40:20

相關問題