This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Fix a URL in Google Webmaster tools
Author
Message |
whizzinisapi
Groupie


Joined: 21 May 2004
Location: United States
Posts: 50
Posted: 11 May 2011 at 5:17pm

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
Posts: 10519
Posted: 12 May 2011 at 1:08am

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
Posts: 50
Posted: 12 May 2011 at 12:41pm

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
Posts: 10519
Posted: 13 May 2011 at 2:59am

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
Posts: 50
Posted: 17 May 2011 at 10:52am

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
Posts: 10519
Posted: 18 May 2011 at 4:52am

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
Posts: 50
Posted: 18 May 2011 at 6:12pm

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
Posts: 10519
Posted: 19 May 2011 at 1:19am

"May I PM you one of the pages so you can check it out?"
- sure. please send the page to [email protected], put "For Anton" in the topic and give the reference to this forum post in the text.

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum