Im在我的OSX安裝程序中遇到了Laravel的htaccess文件問題。 我一直在WAMP上運行應用程序,但當我轉移到我的Mac我開始得到問題。Laravel在OSX上的htaccess問題雪豹
htaccess的是默認
# Apache configuration file
# http://httpd.apache.org/docs/2.2/mod/quickreference.html
# Note: ".htaccess" files are an overhead for each request. This logic should
# be placed in your Apache config whenever possible.
# http://httpd.apache.org/docs/2.2/howto/htaccess.html
# Turning on the rewrite engine is necessary for the following rules and
# features. "+FollowSymLinks" must be enabled for this to work symbolically.
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
</IfModule>
# For all files not found in the file system, reroute the request to the
# "index.php" front controller, keeping the query string intact
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
我使用V-主機有一個XXXXXXX.laravel URL。
我將URL添加到我的配置文件並將索引留空。
每次我瀏覽網頁XXXXXXX.laravel我得到的網頁,但是當我瀏覽到XXXXXXX.laravel /測試,我收到了404
,如果我嘗試XXXXXXX.laravel/index.php文件/測試它的工作原理好。
如果我添加index.php到配置文件中的索引,它只是將index.php附加到我的鏈接。
任何想法?? 感謝 亞當,
這是Laravel 3還是Laravel 4? – Aran