-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
35 lines (29 loc) · 1.11 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
<IfModule mod_rewrite.c>
RewriteEngine on
Options -Indexes
ErrorDocument 404 /404
ErrorDocument 403 /403
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
#RewriteRule ^([a-z]+)\/?$ $1.php [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html
#RewriteRule ^([a-z]+)\/?$ $1.html [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.json -f
RewriteRule ^(.*)$ $1.json
#RewriteRule ^([a-z]+)\/?$ $1.json [NC]
RewriteRule ^([a-zA-Z0-9]+)\.jpg$ embed.php?$1.jpg
RewriteRule ^([a-zA-Z0-9]+)\.png$ embed.php?$1.png
RewriteRule ^([a-zA-Z0-9]+)\.gif$ embed.php?$1.gif
RewriteRule ^([a-zA-Z0-9]+)\.webp$ embed.php?$1.webp
RewriteRule ^([a-zA-Z0-9]+)\.jpeg$ embed.php?$1.jpeg
RewriteRule ^([a-zA-Z0-9]+)\.JPG$ embed.php?$1.JPG
RewriteRule ^([a-zA-Z0-9]+)\.PNG$ embed.php?$1.PNG
RewriteRule ^([a-zA-Z0-9]+)\.GIF$ embed.php?$1.GIF
RewriteRule ^([a-zA-Z0-9]+)\.WEBP$ embed.php?$1.WEBP
RewriteRule ^([a-zA-Z0-9]+)\.JPEG$ embed.php?$1.JPEG
RewriteRule ^([a-zA-Z0-9]+)\.mp4$ https://miraiscute.com/up/$1.mp4
</IfModule>