I recently upgraded my servers and now I have 2 coppies of my forum running simultaneously: http://customizepsp.co.uk and http://www.customizepsp.co.uk How do I make them both point to the same website? BTW I need http://customizepsp.co.uk/ to be the main one, as the other one has no information from the last 2 weeks Thanks and +rep to anyone who helps!
Depending on your server it could be done different ways. I know on my c panel, I get the option to redirect. So check with your host, as they are the ones who can change the server to the way you need it. if anymore questions, or if you dont understand this, pm me sc
just redirect it or change the folder its pointing to. I don't see how it could be seperate though? did you make a subdomain called www.customizepsp.co.uk?
hello this help you add in .htaccess RewriteEngine on RewriteCond %{HTTP_HOST} !^customizepsp.co.uk$ RewriteRule ^(.*)$ http://customizepsp.co.uk/$1 [R=301] and if user open www.customizepsp.co.uk are redirected from customizepsp.co.uk Best
As Estevan said, you can modify your .htaccess file. However, it only works if your website is on an Apache Server with mod_rewrite enabled. Hopefully you do, as it is the best way to handle it. If not, you could try this code snipet in your php files <?php if ($_SERVER['HTTP_HOST'] != 'yourdomain.com') { header('Location: http://yourdomain.com'.$_SERVER['REQUEST_URI'], 301); exit(); } ?> Code (markup):
Its works but you need mod_rewrite RewriteEngine on RewriteCond %{HTTP_HOST} !^customizepsp.co.uk$ RewriteRule ^(.*)$ http://customizepsp.co.uk/$1 [R=301]