Thread: 301 redirects?
View Single Post
  #1 (permalink)  
Old 06-09-04
madstock madstock is offline
25 chars.? Need more spac
 
Join Date: Aug 2003
Location: here
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
madstock is an unknown quantity at this point
  301 redirects?

I have recently registered a shed load of domains and walloped together "mini sites", using info that was previously part of our main directory site - i.e. instead of http://www.mainsite.co.uk/bananas there is now http://www.minibananasite.co.uk (with the previous directory "bananas" now pointing at the new site).

All of this is fine and dandy, however under the old site I had a set up like:

http://www.mainsite.co.uk/bananas/details.php?q=bananaretailer1 - this would then give a lovely optimised page that details all about "bananaretailer1" - what I would like to do is automatically redirect this to the new site, but I really haven't got a Scooby, to utilise the language of my 4-year old...

I understand that a 301 within a .htaccess goes something like:

Redirect 301 /page.php http://www.newsite.co.uk/newpage.php

However I would like to make:

http://www.mainsite.co.uk/bananas/details.php?q="WHATEVER"

resolve to

http://www.minibananasite.co.uk/details.php?q="WHATEVER"

where the bit after q= is a variable, as opposed to a constant string..

Please can someone put me out of my misery?

Cheers
Reply With Quote
Sponsored Links