-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
46 lines (28 loc) · 1.26 KB
/
.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
40
41
42
43
44
45
#DirectoryIndex index.html
#ErrorDocument 404 https://shake8ball.com/page-not-found.html
#Options +Indexes +Includes +FollowSymLinks -MultiViews
#RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)\.html$ /$1 [L,R=301]
#----------
DirectoryIndex index.html
# mod_rewrite starts here
RewriteEngine on
# does not apply to existing directories, meaning that if the folder exists on the server then don't change anything and don't run the rule
# Check for file in directory with .html extension
# Here we actually show the page that has the .html extension
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
RewriteCond %{HTTP_HOST} ^shake8ball\.naomijustin\.com.au$ [OR]
RewriteCond %{HTTP_HOST} ^www\.shake8ball\.naomijustin\.com.au$
RewriteRule ^(.*)$ "https\:\/\/shake8ball\.com\/$1" [R=301,L]
# Error redirect to custom file
ErrorDocument 404 /page-not-found.html
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php74___lsphp .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit