2012-10-21 104 views
0

我想建立一個wordpress(3.4.2)多站點。目前網站上已經應用了以下阿帕奇規則,我沒有權限編輯WordPress的多站點與子域漂亮的永久鏈接

<VirtualHost xx.xx.xx.xxx:80> 
    ServerName foo.example.nl 
    ServerAlias www.foo.example.nl 
    DocumentRoot /web/sites/example.nl/foo/www 
    RewriteEngine On 
<Location /> 
    Allow from all 
</Location> 
</VirtualHost> 

這工作但罰款我發現,試圖建立與固定鏈接「後名」選項總是給我404重定向。 http://foo.example.nl/post1 = 404未找到

此刻我有未安裝多點只是爲了嘗試並獲得與子域工作的漂亮網址,但想很多我的.htaccess但沒有什麼不同的變化之後,似乎是工作。這裏是當前的.htaccess 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> 

回答

1

不幸的是你可能使用.htaccess配置RewriteRules限制。如果您參考了Using "Pretty" Permalinks上的Wordpress文檔,您會發現需要啓用Options FollowSymLinks以及AllowOverride FileinfoAllowOverride All才能使用.htaccess中的漂亮URL配置。由於這些文件似乎並未設置爲<VirtualHost>,所以很可能是您的問題,因爲它們通常是而不是在Apache配置中設置的較高級別。

相關問題