mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -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;
|
||||
}
|
||||
# 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;
|
||||
}
|
||||
|
||||
|
@ -141,5 +141,8 @@ http {
|
|||
location ~ \.(.*sql|tpl|db|inc|log)$ {
|
||||
deny all;
|
||||
}
|
||||
# rewrite url
|
||||
rewrite ^/sitemap.xml$ /upload/sitemap.xml;
|
||||
|
||||
}
|
||||
}
|
|
@ -6,4 +6,7 @@ Options All -Indexes
|
|||
|
||||
<FilesMatch "\.(.*sql|tpl|inc|db|log)|(config|common).php$">
|
||||
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