View Single Post
  #7  
Old 27th March 2009, 17:16
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Default

Thanks falko.

Instead of using .htaccess for the 301 redirect can I use "Apache Directives (Optional):" in ISPConfig?
Maybe put something like this there:
Quote:
RewriteCond %{HTTP_HOST} !^www\.newdomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
The 301 redirect is critical for SEO and it also makes sure the "www" is present in the URL.

Since olddomain.com will be going away I think I will change the Domain of the site to newdomain.com and create co-domains for olddomain.com and www.olddomain.com. That way I can simply delete the co-domains in a year or so when I no longer need them. I think that will do the same thing as you suggest.
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography

Last edited by wpwood3; 28th March 2009 at 00:21.
Reply With Quote