1
我試圖在新Mac上設置我的本地開發環境。這是我得到的第一個,我不確定不同的東西。在OS X上從Codeigniter中刪除index.php 10.9.4
我已經建立了大多數的正確的事情,現在我可以訪問我的網站是這樣的:
本地主機/〜卡羅/ website.com/
在我到一個笨的情況下,把index.php放在最後。
的的.htaccess我通常使用的是這樣的:
RewriteEngine on
RewriteBase /~carlo/website.com/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|cache|captcha|fonts|forum|media|img|min|css|js|scripts|images|uploads|docs|robots. txt|sitemap.xml|sitemap|public|tools|wpblog|assets|xd_receiver.htm)
RewriteRule ^(.*)$ index.php/$1 [L]
但是這還不夠。
我說這/private/etc/apache2/extra/httpd-vhosts.conf:
DocumentRoot "/Users/carlo/public_html" ServerName "localhost" ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log" CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common
DocumentRoot "/Users/carlo/public_html/website.com" ServerName tobecontinuedcomic.com AllowOverride All Options +FollowSymLinks Order allow,deny Allow from All
但仍然一無所獲。任何幫助?
沒有,這並沒有解決問題。 看着Apache日誌我收到此錯誤:選項FollowSymLinks或SymLinksIfOwnerMatch已關閉,這意味着RewriteRule指令被禁止: – Carlo 2014-10-02 14:18:32