Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

rewrute rules not work - gave 404 not found

$
0
0
I use vhost - cpanel.site.com and my rewrite rules is........ but not work:

location = /home {
rewrite ^(.*)$ /home.php break;
}
location = /dev/changelog {
rewrite ^(.*)$ /changelog.php;
rewrite ^(.*)$ /changelog.php;
}
location = /add_domain {
rewrite ^(.*)$ /add_domain.php break;
}
location /plan {
rewrite ^/plan-([^/]*)$ /plan.php?p=$1 break;
}
location /upgrade {
rewrite ^/upgrade-([^/]*)$ /upgrade.php?p=$1 break;
}
location = /payment {
rewrite ^(.*)$ /invoice.php break;
}
location /pay {
rewrite ^/pay?([^/]*)$ /paypal/process.php$1 break;
rewrite ^/pay/([^/]*)$ /paypal/$1 break;
}
location = /dev {
rewrite ^(.*)$ /dev.php break;
}
location = /dev/block_page {
rewrite ^(.*)$ /dev.php?def=1 break;
}
location = /exit {
rewrite ^(.*)$ /exit.php break;
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>