File tree 2 files changed +32
-0
lines changed
2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ +Options All –Indexes
2
+
3
+ <Files .htaccess >
4
+ order allow,deny
5
+ deny from all
6
+ </Files >
7
+
8
+ <IfModule mod_rewrite.c >
9
+ # Redirect to the public folder
10
+ RewriteEngine On
11
+ # RewriteBase /
12
+ RewriteRule ^$ public/ [L]
13
+ RewriteRule (.*) public/$1 [L]
14
+
15
+ # Redirect to HTTPS
16
+ # RewriteEngine On
17
+ # RewriteCond %{HTTPS} off
18
+ # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
19
+ </IfModule >
Original file line number Diff line number Diff line change
1
+ +Options All –Indexes
2
+
3
+ <Files .htaccess >
4
+ order allow,deny
5
+ deny from all
6
+ </Files >
7
+
1
8
<IfModule mod_rewrite.c >
2
9
RewriteEngine On
3
10
11
+ # Redirect to HTTPS
12
+ # RewriteEngine On
13
+ # RewriteCond %{HTTPS} off
14
+ # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
15
+
4
16
# Some hosts may require you to use the `RewriteBase` directive.
5
17
# Determine the RewriteBase automatically and set it as environment variable.
6
18
# If you are using Apache aliases to do mass virtual hosting or installed the
16
28
# absolute physical path to the directory that contains this htaccess file.
17
29
# RewriteBase /
18
30
31
+ RewriteCond %{REQUEST_FILENAME} !-d
19
32
RewriteCond %{REQUEST_FILENAME} !-f
20
33
RewriteRule ^ index.php [QSA,L]
21
34
</IfModule >
You can’t perform that action at this time.
0 commit comments