Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location = /robots.txt {
- rewrite ^(.*)$ /robots.php;
- }
- location = /contact.html {
- rewrite ^(.*)$ /contact.php;
- }
- location = /rss.xml {
- rewrite ^(.*)$ /rss.php;
- }
- location = /sitemap.xml {
- rewrite ^(.*)$ /sitemap.php;
- }
- location = /BingSiteAuth.xml {
- rewrite ^(.*)$ /BingSiteAuth.php;
- }
- location / {
- index default.htm index.html index.htm index.php;
- rewrite ^/([0-9a-z-]+)/$ /index.php?category=$1;
- rewrite ^/([0-9a-z-]+)/([0-9]+).html$ /index.php?category=$1&url=$2;
- rewrite ^/([0-9a-z-]+)/index.html$ /index.php?category=$1;
- rewrite ^/([0-9a-z-]+)/([0-9a-z-]+)/$ /page.php?category=$1&url=$2;
- rewrite ^/([0-9a-z-]+)/([0-9a-z-]+)/video/$ /video.php?category=$1&url=$2;
- rewrite ^/([0-9a-z-]+)/([0-9a-z-]+)/gallery/$ /gallery.php?category=$1&url=$2;
- rewrite ^/([0-9a-z-]+)/([0-9a-z-]+)/images/$ /images.php?category=$1&url=$2;
- rewrite ^/([0-9a-z-]+)/([0-9a-z-]+)/vk/$ /vk.php?category=$1&url=$2;
- }
- location /google {
- rewrite ^/google(.*).html$ /google.php?id=$1;
- }
- location /yandex_ {
- rewrite ^/yandex_(.*).html$ /yandex.php?id=$1;
- }
- location /wmail_ {
- rewrite ^/wmail_(.*).html$ /wmail.php?id=$1;
- }
- location = /news.html {
- rewrite ^(.*)$ /rssparser.php;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement