-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.htaccess
39 lines (31 loc) · 848 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Shared hosting Laravel rewrite root to public directory
# Php 8.2 Ovh
# SetEnv PHP_VER 8_2
# SetEnv REGISTER_GLOBALS 0
# Php 8.2 Small.pl hosting
AddType application/x-httpd-php82 .php
DirectoryIndex index.php
Options -Indexes -MultiViews +SymLinksIfOwnerMatch
# Options -Indexes -MultiViews +FollowSymlinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^$ public/index.php [L]
RewriteRule ^((?!public/).*)$ public/$1 [L,NC]
RewriteRule (^\.|/\.) - [F]
# SSL
#RewriteEngine On
#RewriteCond %{SERVER_PORT} 80
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
#RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)/$ /$1 [L,R]
</IfModule>
<Files .env>
Order allow,deny
Deny from all
</Files>
<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>