作爲一個經驗豐富的網頁開發人員,我覺得自己像一個白癡發佈這一點。不知何故,我傾向於與.htaccess
有問題。我試圖路線中/wiki
所有請求我的index.php與下面...無法獲得.htaccess的工作
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ./ /index.php [L]
當前虛擬主機:
<VirtualHost *:80>
ServerName mysite.local
DocumentRoot "/var/www/mysite/public_html"
<Directory "/var/www/mysite/public_html">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
我試圖訪問http://mysite.local/wiki/asdf
並得到一個404錯誤。
Apache的錯誤日誌顯示什麼
我想只有改寫目錄/路徑,唐不存在,這就是爲什麼我認爲使用Wordpress'.htaccess會做到這一點。 – Webnet 2013-04-04 13:08:34
哪些不存在,目錄或文件? – 5ervant 2013-04-04 13:13:57