Help! changed server and some rewrite rules don't work.
3 posts
• Page 1 of 1
- collectorcarads
- Posts: 2
- Joined: 04 Jun 2015, 00:43
Help! changed server and some rewrite rules don't work.
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.
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.
Re: Help! changed server and some rewrite rules don't work.
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.
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.
- collectorcarads
- Posts: 2
- Joined: 04 Jun 2015, 00:43
Re: Help! changed server and some rewrite rules don't work.
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
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
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests