Skip to content

Commit 6758379

Browse files
committed
Merge pull request laravel#723 from syntaqx/htaccess
htaccess documentation and symlink usage
2 parents d6bcc41 + 9ec4c86 commit 6758379

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

Diff for: public/.htaccess

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1+
# Apache configuration file
2+
# http://httpd.apache.org/docs/2.2/mod/quickreference.html
3+
4+
# Note: ".htaccess" files are an overhead for each request. This logic should
5+
# be placed in your Apache config whenever possible.
6+
# http://httpd.apache.org/docs/2.2/howto/htaccess.html
7+
8+
# Turning on the rewrite engine is necessary for the following rules and
9+
# features. "+FollowSymLinks" must be enabled for this to work symbolically.
10+
111
<IfModule mod_rewrite.c>
2-
RewriteEngine on
12+
Options +FollowSymLinks
13+
RewriteEngine On
14+
</IfModule>
315

4-
RewriteCond %{REQUEST_FILENAME} !-f
5-
RewriteCond %{REQUEST_FILENAME} !-d
16+
# For all files not found in the file system, reroute the request to the
17+
# "index.php" front controller, keeping the query string intact
618

7-
RewriteRule ^(.*)$ index.php/$1 [L]
19+
<IfModule mod_rewrite.c>
20+
RewriteCond %{REQUEST_FILENAME} !-f
21+
RewriteCond %{REQUEST_FILENAME} !-d
22+
RewriteRule ^(.*)$ index.php/$1 [L]
823
</IfModule>

0 commit comments

Comments
 (0)