-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
51 lines (38 loc) · 1.83 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
46
47
48
49
50
51
RewriteEngine On
RewriteBase /
RewriteRule ^test/(.+)/[a-zA-Z0-9&\-\+\.'"]* test.php?movie_id=$1 [L,NC]
RewriteRule ^vlog/think-like-a-lawyer/(.+)/[a-zA-Z0-9&\-\+\.'"]* subpages/vlog/think-like-a-lawyer.php?slug=$1 [L,NC]
RewriteCond %{DOCUMENT_ROOT}/subpages/$1.php -f
RewriteRule ^(.+?)/?$ /subpages/$1.php [L]
RewriteCond %{DOCUMENT_ROOT}/subpages/services/$1.php -f
RewriteRule ^(.+?)/?$ /subpages/services/$1.php [L]
RewriteCond %{DOCUMENT_ROOT}/blog/$1.php -f
RewriteRule ^(.+?)/?$ /blog/$1.php [L]
# Resolve .php file for extensionless PHP URLs
RewriteRule ^(.*)/$ /$1.php [L]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
ErrorDocument 404 /404.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#AuthType Basic
#AuthName "Restricted Content"
#AuthUserFile /etc/apache2/.htpasswd
#Require valid-user
#----------------------------------------------------------------cp:ppd
# Section managed by cPanel: Password Protected Directories -cp:ppd
# - Do not edit this section of the htaccess file! -cp:ppd
#----------------------------------------------------------------cp:ppd
#AuthType Basic
#AuthName "Protected 'staging.bailynlaw.com'"
#AuthUserFile "/home/bailynlaw/.htpasswds/staging.bailynlaw.com/passwd"
#Require valid-user
#----------------------------------------------------------------cp:ppd
# End section managed by cPanel: Password Protected Directories -cp:ppd
#----------------------------------------------------------------cp:ppd
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php70” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php70 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit