Help! changed server and some rewrite rules don't work.

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 2
Joined: 04 Jun 2015, 00:43

Help! changed server and some rewrite rules don't work.

04 Jun 2015, 00:53

My website was just moved to a new server and the rewrite rule that handled multiple words now shows a 404
For example www.collectorcarads.com/models/Biscayne works fine because 'Biscayne' is one word.
www.collectorcarads.com/models/Bel Air results in a 404. 'Bel Air' of course being two words

Here are the rules:
RewriteRule ^/models/(.+)/(-?\d+)$ /models.asp?model=$1&offset=$2&r=1 [I,L]
RewriteRule ^/models/(.+)$ /models.asp?model=$1&r=1 [I,L]

I had someone do this for me years ago and I'm not very technically savvy so any help would be appreciated.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Help! changed server and some rewrite rules don't work.

04 Jun 2015, 12:29

Hello,

Which version of IIS is your new server using?
It looks as if the requests with spaces are blocked, and this is typical of IIS7 and higher as it is generally considered bad practice.
Please confirm it is ISAPI_Rewrite 2 you are using. Not v3.
And please attach the screenshot of the 404 error you get.

User avatar
Posts: 2
Joined: 04 Jun 2015, 00:43

Re: Help! changed server and some rewrite rules don't work.

04 Jun 2015, 14:27

I moved from IIS6 to 7.5.
Yes I've looked into it and I can see the blank spaces are a problem with this version IIS, but is there a quick fix to avoid the 404's while I look for a better long term solution? The 404's are user friendly but its definitely what is being returned by the server. And yes I am using ISAPI 2

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 0 guests