File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ # php_value display_errors 1
2+ # DirectoryIndex index.html index.php
3+
4+ # PHP 8.2
5+ AddType application/x-httpd-php82 .php
6+
7+ # Dir listing disabled
8+ Options -Indexes
9+
10+ # Enable rewrite
11+ RewriteEngine On
12+ RewriteBase /
13+
14+ # Non-www
15+ RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
16+ RewriteRule ^(.*)$ http://%1/$1 [R=301 ,L]
17+
18+ # Http to https
19+ RewriteCond %{HTTPS} off
20+ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301 ,L]
21+
22+ # Https to http
23+ # RewriteCond %{HTTPS} on
24+ # RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
25+
26+ # Redirect domain
27+ # RewriteCond %{HTTP_HOST} ^atomjoy.test$ [OR]
28+ # RewriteCond %{HTTP_HOST} ^www.atomjoy.test$
29+ # RewriteRule (.*)$ https://atomjoy.github.io/$1 [R=301,L]
You can’t perform that action at this time.
0 commit comments