Welcome! Log In Create A New Profile

Advanced

rewrite problems

Posted by solarisik 
rewrite problems
May 25, 2010 09:12AM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready