2011-02-02 84 views
0

我想實現一個非常簡單而又複雜的事情: 刪除的index.php從我的博客網址重寫規則WordPress的螺旋ISAPI篩選器3

我有永久設置爲: /%,比去年%/%monthnum% /%postname%/

我已經在我的.htaccess文件中嘗試了至少20個在線示例,但它們都不起作用:或者整個網站都不起作用,或者項目不起作用。我得到404

幾個例子,我想:

RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?p=$1 [NC,L] 

RewriteRule (.*) index.php/$1 [L] 

RewriteRule .* /index.php [L] 

Options +Followsymlinks 
RewriteEngine On 
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /index.php [L] 

等等。 不幸的是他們都沒有工作。 Helicon技術支持要求錢來幫助我,因此門關閉了。

任何重寫規則專家?會感謝你。

問候,

回答

0

這是爲我們工作

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule .* index.php 

如果它不爲你工作,有可能是一百個理由,從形式沒有足夠的權限和自定義IIS配置結尾的配置等

嘗試按照文檔的疑難解答部分,嘗試從啓用日誌記錄和測試一些基本重寫開始。

1

我使用IIS 6,Win2k3,Wishlist成員和permalink%postname%。

此配置文件爲isapi通過helicon重寫是唯一有效的工具。

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule .* index.php 

雅羅斯拉夫你是我的英雄。