View Single Post
  #7  
Old 03-31-2006, 10:31 AM
 
TJ Stephens TJ Stephens is offline
 

Advanced Member
  
Join Date: May 2005
Location: California
Posts: 94
 

Default

Quote:
Originally Posted by cotc2001
Your original post is similair to a question i was wanting to ask.

Because we will be rebranding our site and with a different domain name. I'm wondering if its possible to do a blanket 301 redirect

so that for example

http://www.justhom.com/product.php?productid=366&cat=0&page=1

can become

http://www.xyz.com/product.php?productid=366&cat=0&page=1<br /> <br /> with one line of code in .htacces... and variable.

I moved my site to the root and had the following line in my .htaccess file that redirected all my links that were out on the search engines to the proper page on the root. Essentially, it just removed the /xcart part from the link. www.mysite.com/xcart/product.php?productid=366&cat=0&page=1 was redirected to www.mysite.com/product.php?productid=366&cat=0&page=1. The .htaccess code for this redirect was as follows:
Code:
Redirect 301 /xcart http://www.mysite.com
You should be able to accomplish what you want by simply putting the following redirect in your .htaccess file for your old site.
Code:
Redirect 301 http://www.newsite.com
I believe it would work the same way and that all your links to your old site would be redirected to the proper page on your new site. Give it a shot and let me know if it works.
__________________
X-Cart Pro 4.1.11 (Live)
XRMA
XAFF
XAOM
DSEFU Pro
XGift Reg
Firetank Feed Manager
BCSE Shipping Calculator
XcartMod Dynamic Images
Reply With Quote