Mod Rewrite/Redirect Dynamic ASP URL
am 20.12.2007 01:07:43 von Stephen M
Hi there,
We've just changed content management systems and so the URL structure
of our website has changed from dynamic ASP URL's to more search engine
friendly url's.
Google has been slow to re-index our site and we've just realised that
the number 1 link for our website name on Google is pointing towards
one of those old dynamic URL's.
Can someone please help me write some sort of mod_rewrite rule that
would redirect this URL to our home page please?
The URL in question looks like this:
http://www.mywebsite.com/section/section_detail.asp?sectionI d=28&wardIdß&gsIdß00032
I've
tried to use:
Redirect 301
/section/section_detail.asp?sectionId=28&wardIdß&gsIdß00 032
http://www.mywebsite.com/
But this doesn't work due to the dynamic URL. I think I therefore need
to have some sort of mod_rewrite rule (or other) rule in place but
don't know where to start!
Thanks for any advice with this,
Stephen
Re: Mod Rewrite/Redirect Dynamic ASP URL
am 20.12.2007 12:54:49 von HansH
"Stephen M" schreef in bericht
news:4769b249$0$13927$fa0fcedb@news.zen.co.uk...
> Google has been slow to re-index our site and we've just realised that the
> number 1 link for our website name on Google is pointing towards one of
> those old dynamic URL's.
Google will be even slower in forgetting the old site ...
.... when the new structure has been fully indexed use replace
section_detail.asp with a asmall script just returning status '410 GONE'
> The URL in question looks like this:
> http://www.mywebsite.com/section/section_detail.asp?sectionI d=28&wardIdß&gsIdß00032
>
> I've > tried to use:
> Redirect 301
> /section/section_detail.asp?sectionId=28&wardIdß&gsIdß00 032
> http://www.mywebsite.com/
Assuming this .asp is missing and not funtional for any query string, just
do
Redirect 301 /section/section_detail.asp http://www.mywebsite.com/
or rather to a page informing the visitor about the remake of the site
first.
If links to old and new sites can be listed side by side in a 2 column table
for at least the main structure of the side use the intermediate page to
tell a visitor -Google included- where to go today.
The intermediate page should be marked 'no-index, follow' either in
robots.txt or otherwise.
HansH
Re: Mod Rewrite/Redirect Dynamic ASP URL
am 21.12.2007 04:14:37 von Stephen M
On 2007-12-20 11:54:49 +0000, "HansH" said:
> "Stephen M" schreef in bericht
> news:4769b249$0$13927$fa0fcedb@news.zen.co.uk...
>> Google has been slow to re-index our site and we've just realised that the
>> number 1 link for our website name on Google is pointing towards one of
>> those old dynamic URL's.
> Google will be even slower in forgetting the old site ...
> ... when the new structure has been fully indexed use replace
> section_detail.asp with a asmall script just returning status '410 GONE'
>
>> The URL in question looks like this:
>> http://www.mywebsite.com/section/section_detail.asp?sectionI d=28&wardIdß&gsIdß00032
I've
>>
>> > tried to use:
>> Redirect 301
>> /section/section_detail.asp?sectionId=28&wardIdß&gsIdß00 032
>> http://www.mywebsite.com/
>
> Assuming this .asp is missing and not funtional for any query string, just
> do
> Redirect 301 /section/section_detail.asp http://www.mywebsite.com/
>
> or rather to a page informing the visitor about the remake of the site
> first.
>
> If links to old and new sites can be listed side by side in a 2 column table
> for at least the main structure of the side use the intermediate page to
> tell a visitor -Google included- where to go today.
>
> The intermediate page should be marked 'no-index, follow' either in
> robots.txt or otherwise.
>
> HansH
Thanks for the advice Hans.
Stephen