2012-01-18 55 views
0

如何從URL中移除的index.php在WordPress 2.0 IIS服務器上。 我htacess是像下面,但它並沒有爲我工作刪除索引WordPress的

# 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 

回答

0

基本上,您重寫設置是否正確。您還需要爲wordpress提供正確的配置。請轉至Settings > Permalinks並檢查是否已將所需的一切設置在此處。選擇一些,但不是「默認」。

編輯

改編,你在IIS。您沒有mod_rewrite模塊,因爲mod_rewrite是apache模塊。刪除<ifModule>標籤,然後重試。

+0

,當我把它改爲「%postname%/」,而不是「/index.php/%postname%/」,頁面變得找不到 – user972087 2012-01-26 01:07:16

+0

更新答案(評論填充) – pduersteler 2012-01-26 08:33:27