-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
33 lines (30 loc) · 1.18 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
# HANDLERS
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
# REWRITE PWA
# Must end with "/" to masquerade each PWA into its own folder allowing multiple-installs
RewriteCond %{QUERY_STRING} !PWA
RewriteCond %{REQUEST_URI} ^(\/Holy\-Bible\-\-\-[^/.]+)$ [NC,OR]
RewriteCond %{REQUEST_URI} ^(\/Holy\-Bible\-\-\-[^/.]+)\.htm$ [NC]
RewriteRule ^ %1/ [L,R=301]
# Once masqueraded must point to the actual PWA HTM file
RewriteCond %{REQUEST_URI} ^(\/Holy\-Bible\-\-\-[^/.]+)\/$ [NC]
RewriteCond %{DOCUMENT_ROOT}%1\.htm -f
RewriteRule ^ %1.htm?PWA [L]
# Likewise point to actual PWA resource files
RewriteCond %{REQUEST_URI} ^\/Holy\-Bible\-\-\-[^/.]+\/(.+)$ [NC]
RewriteCond %{DOCUMENT_ROOT}\/%1 -f
RewriteRule ^ /%1 [L]
# If not an actual file then a dynamic resource
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule ^ index.php [L]
# REWRITE INFINITE LOOP
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule .* - [L]
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php80” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php80 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit