I have urls like that
http://sss123123123.com/accounting/accounting-jobs-c-6.html
and my rewrite rule like this
if (-e $request_filename) {
break;
}
if (!-e $request_filename) {
rewrite ^/(.*)/(.*)-s-([0-9]*).html /www/single.php?directory=$1&name=$2&id=$3 last;
break;
}
but "http://sss123123123.com/accounting/accounting-jobs-c-6.htmlasdfasdf" urls work as well. How to give 404 these urls?
Edited 1 time(s). Last edit at 05/25/2010 09:13AM by solarisik.