| Author |
|
whizzinisapi Groupie

Joined: 21 May 2004 Location: United States
Online Status: Offline Posts: 50
|
| Posted: 11 May 2011 at 5:17pm | IP Logged
|
|
|
I have a url that keeps showing up in google webmaster tools that I want to just fix to avoid the error.
The url is structered like this...
http://www.widgets.com/gifts/pc/<b>Gardener</widgets.htm
you can see that this url looks weird and is incorrect. I can't figure out where its coming from and I cant make it give a 404 so I just thought I maybe we could fix the url through a rewrite. We basically need to get rid of "<b>Gardener</" from the url.
so it should look like this:
http://www.widgets.com/gifts/pc/widgets.htm
Please help.
Thanks guys
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 12 May 2011 at 1:08am | IP Logged
|
|
|
Ok, please try to have the following rule:
[ISAPI_Rewrite]
RewriteRule /gifts/pc/\<b\>Gardener\</widgets\.htm http\://www.widgets.com/gifts/pc/widgets.htm [I,RP]
__________________ Regards,
Anton
|
| Back to Top |
|
| |
whizzinisapi Groupie

Joined: 21 May 2004 Location: United States
Online Status: Offline Posts: 50
|
| Posted: 12 May 2011 at 12:41pm | IP Logged
|
|
|
Sorry, I forgot to mention widgets.htm is dynamic so it changes
based on the category.
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 13 May 2011 at 2:59am | IP Logged
|
|
|
Ok, then it should be like this:
[ISAPI_Rewrite]
RewriteRule (.*)\<b\>Gardener\</(.*) http\://www.widgets.com$1$2 [I,RP]
__________________ Regards,
Anton
|
| Back to Top |
|
| |
whizzinisapi Groupie

Joined: 21 May 2004 Location: United States
Online Status: Offline Posts: 50
|
| Posted: 17 May 2011 at 10:52am | IP Logged
|
|
|
I tested this out... and it doesn't do anything. Any other
ideas?
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 18 May 2011 at 4:52am | IP Logged
|
|
|
Please confirm it's ISAPI_Rewrite 2 you are using.
And please try the rule like this:
RewriteRule (.*)<b>Gardener</(.*) http\://www.widgets.com$1$2
__________________ Regards,
Anton
|
| Back to Top |
|
| |
whizzinisapi Groupie

Joined: 21 May 2004 Location: United States
Online Status: Offline Posts: 50
|
| Posted: 18 May 2011 at 6:12pm | IP Logged
|
|
|
It's definitely ISAPI_Rewrite 2, I tried the new one and it still didn't work. What I noticed is that the url does change to a 404 error with or without the rewrite code. May I PM you one of the pages so you can check it out?
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 19 May 2011 at 1:19am | IP Logged
|
|
|
"May I PM you one of the pages so you can check it out?"
- sure. please send the page to support@helicontech.com, put "For Anton" in the topic and give the reference to this forum post in the text.
__________________ Regards,
Anton
|
| Back to Top |
|
| |