Skip to content

Commit c276488

Browse files
authored
Update .htaccess
1 parent f2e04e7 commit c276488

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.htaccess

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# php_value display_errors 1
22
# DirectoryIndex index.html index.php
33

4-
# Dont list dirs
4+
# PHP 8.2 (small.pl)
5+
# AddType application/x-httpd-php82 .php
6+
7+
# Dir listing disabled
58
Options -Indexes
69

710
# Enable rewrite
811
RewriteEngine On
912
RewriteBase /
1013

11-
# To non-www
14+
# Non-www
1215
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
1316
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
1417

@@ -19,3 +22,8 @@ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
1922
# Https to http
2023
# RewriteCond %{HTTPS} on
2124
# RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
25+
26+
# Redirect domain (permanent)
27+
# RewriteCond %{HTTP_HOST} ^example.com$ [OR]
28+
# RewriteCond %{HTTP_HOST} ^www.example.com$
29+
# RewriteRule (.*)$ https://atomjoy.github.io/$1 [R=301,L]

0 commit comments

Comments
 (0)