You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
548 B
22 lines
548 B
# Remote access
|
|
Require ip 68.147.189.97
|
|
Require ip 96.53.11.174
|
|
Require ip 127.0.0.1
|
|
Require ip 137.184.238.236
|
|
|
|
Require ip 209.91.92.98
|
|
#Require all granted
|
|
|
|
RewriteEngine On
|
|
|
|
# IMPORTANT: RewriteBase must match the folder path
|
|
RewriteBase /admin/
|
|
|
|
# Case: /admin/ → /admin/index.php
|
|
RewriteRule ^$ index.php [L]
|
|
|
|
# Case: /admin/something → /admin/something.php/
|
|
# Case: /admin/something/extra → /admin/something.php/extra
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^([^/]+)(/.*)?$ $1.php$2 [L,QSA]
|
|
|