Hello all and apologies for being off topic. I have client that is looking
to fix all 404s errors based on their Google Analytics report. For some
reason, they have several hundred malformed URLs that were indexed by the
googlebot like so:

http://domain.com/http://www.domain.com/displayproducts/apparel/t-shirts.htm
l
http://domain.com/http://www.domain.com/displayproducts/apparel/sweatshirts.
html

For every instance, I'd like to match the
"http://domain.com/http://www.domain.com"; and perform a 301 Redirect to
"http://www.domain.com"; while keeping the query string in place instead of
serving up 404 pages.

For my most recent attempt, I used the following in my IsapiRewrite4.ini
file:

RewriteCond  %{HTTP_HOST}       ^http://domain\.com/http://www\.domain\.com$
RedirectRule ^/(.*)$            http://www.domain.com/$1 [R=301]

I'd appreciate any help in resolving this issue. The web server runs IIS6
and uses v1.x of IIRF.

Thanks in advance, Che



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353751
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to