2
Answers

URL rewriting in .htaccesss.

Photo of dilver singh

dilver singh

9y
436
1
Basically it is range problem in .htaccess file  while rewring URL for redirecting 
RewriteEngine on 
RewriteCond %{REQUEST_URI} Delhi/(.*)/([45-600])
RewriteRule Delhi/(.*)/([45-600]) sd/pages/sub_category.php?city=Delhi&Id=$2

But it is not working as it is supposed to be
Actually i want to redirect page if there is any Id from 45 to 600. But is also redirecting ids like 4, 41,42.........49 and so on.
i also tried as bellow 

RewriteCond %{REQUEST_URI} Delhi/(.*)/([(45)-(600)])
RewriteRule Delhi/(.*)/(([45)-(600)]) sd/pages/sub_category.php?city=Delhi&Id=$2
but it didn't work at all
please help asap
Regards.....

Answers (2)

0
Photo of richard.ryerson
NA 13 0 20y
Wanted to say thanks in a new post. Thanks for looking at this and best regards, Rick
Next Recommended Forum