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;
}
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;
}