Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location / {
- if ($http_host ~* "^www.darkw.pl(.*)"){
- rewrite ^(.*)$ https://darkw.pl/$1 redirect;
- }
- rewrite ^(.*)$ https://$http_host$request_uri redirect;
- rewrite ^/(.*)-f([0-9]*)/mcp.php(.*) /mcp.php?$query_string redirect;
- rewrite ^/(.*)-f([0-9]*)/(.*)-t([0-9]*)-s([0-9]*).html /viewtopic.php?f=$2&t=$4&start=$5&$query_string break;
- rewrite ^/(.*)-f([0-9]*)/(.*)-t([0-9]*).html /viewtopic.php?f=$2&t=$4&$query_string break;
- rewrite ^/(.*)-f([0-9]*)/index-s([0-9]*).html /viewforum.php?f=$2&start=$3&$query_string break;
- rewrite ^/(.*)-f([0-9]*)/ /viewforum.php?f=$2&$query_string break;
- rewrite ^/(.*)-f([0-9]*) /viewforum.php?f=$2&$query_string break;
- if (!-e $request_filename){
- rewrite ^(.*)$ /app.php break;
- }
- }
- location /config.php {
- deny all;
- deny all;
- }
- location /common.php {
- deny all;
- deny all;
- }
- location /403.shtml {
- allow all;
- }</div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement