mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
rewrite
This commit is contained in:
parent
27293f4422
commit
cf044df543
3 changed files with 9 additions and 2 deletions
|
@ -128,7 +128,7 @@ http {
|
||||||
# allow YOUR_IP;
|
# allow YOUR_IP;
|
||||||
}
|
}
|
||||||
# Deny folder (Sec. lvl1)
|
# Deny folder (Sec. lvl1)
|
||||||
location ~ \/(cache|log|attach_mod|config|includes|language|triggers)\/ {
|
location ~ \/(cache|log|attach_mod|config|includes|language|triggers|data)\/ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,5 +141,8 @@ http {
|
||||||
location ~ \.(.*sql|tpl|db|inc|log)$ {
|
location ~ \.(.*sql|tpl|db|inc|log)$ {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
# rewrite url
|
||||||
|
rewrite ^/sitemap.xml$ /upload/sitemap.xml;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,3 +7,6 @@ Options All -Indexes
|
||||||
<FilesMatch "\.(.*sql|tpl|inc|db|log)|(config|common).php$">
|
<FilesMatch "\.(.*sql|tpl|inc|db|log)|(config|common).php$">
|
||||||
deny from all
|
deny from all
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteRule ^sitemap.xml$ upload/sitemap.xml [L]
|
1
upload/upload/.htaccess
Normal file
1
upload/upload/.htaccess
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Options All -Indexes
|
Loading…
Add table
Add a link
Reference in a new issue