-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
26 lines (26 loc) · 1.03 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
RewriteEngine on
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.antalyarp\.me$ [NC]
RewriteRule ^(.*)$ https://www.antalyarp.me/$1 [L,R=301]
RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
RewriteCond %{THE_REQUEST} /([^.]+)\.xml [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.xml -f
RewriteRule ^ %{REQUEST_URI}.xml [NC,L]
RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]
ErrorDocument 400 https://www.antalyarp.me/
ErrorDocument 401 https://www.antalyarp.me/
ErrorDocument 402 https://www.antalyarp.me/
ErrorDocument 403 https://www.antalyarp.me/
ErrorDocument 404 https://www.antalyarp.me/
ErrorDocument 500 https://www.antalyarp.me/
ErrorDocument 501 https://www.antalyarp.me/
ErrorDocument 502 https://www.antalyarp.me/
ErrorDocument 503 https://www.antalyarp.me/
ErrorDocument 504 https://www.antalyarp.me/