Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > .NET

Reply
 
LinkBack Thread Tools
Old November 3rd, 2008, 08:30 AM   #1
WebForumz Member
SuperMember
 
Phixon's Avatar
 

Join Date: Mar 2007
Location: UK
Age: 22
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Phixon is on a distinguished road
Virtual Host Config File

I need to set up a separate Virtual Host Config file that contains something like this. What exactly does this means, and what file do i need to make?

<Virtualhost *:80>
ServerName www.SITENAME.co.uk
ServerAlias SITENAME.co.uk

Redirect / http://www.SITENAME.com

</Virtualhost>

Then anyone who goes to http://www.SITENAME.co.uk/XYZ will be taken to http://www.SITENAME.com/XYZ
Phixon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 3rd, 2008, 08:58 AM   #2
Aso
Most Reputable Member
 

Join Date: Oct 2007
Location: UK
Posts: 1,633
Blog Entries: 2
Thanks: 22
Thanked 84 Times in 79 Posts
Rep Altering Power: 0 Aso is on a distinguished road
Re: Virtual Host Config File

Are you using the Apache server?

Plus if it's simply a case of redirecting, there's no need for virtual hosts - these are when you want to run multiple, separate websites (domains) off one single IP.
Aso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 3rd, 2008, 09:15 AM   #3
WebForumz Member
SuperMember
 
Phixon's Avatar
 

Join Date: Mar 2007
Location: UK
Age: 22
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Phixon is on a distinguished road
Re: Virtual Host Config File

This is what I am trying to achieve. I have .com as my main site, and i want it when people go to .co.uk it changes to.com. I am running off the Heart Internet servers.
Phixon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 4th, 2008, 05:33 PM   #4
Aso
Most Reputable Member
 

Join Date: Oct 2007
Location: UK
Posts: 1,633
Blog Entries: 2
Thanks: 22
Thanked 84 Times in 79 Posts
Rep Altering Power: 0 Aso is on a distinguished road
Re: Virtual Host Config File

Do you own the .co.uk domain?

If so, go to the domain management section of your control panel, and you should be able to set-up a redirect there. Otherwise, submit a support ticket explaining your requirements and one of the staff should set it up on your behalf
Aso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
xampp port config help... Bocaj PHP 3 September 13th, 2008 01:20 PM
[SOLVED] php re-writing variables in config from form Emzi PHP 2 January 22nd, 2008 04:58 AM
[SOLVED] writing a config file saltedm8 PHP 2 October 13th, 2007 03:31 PM
CREATE DATABASE name' from config.php saltedm8 PHP 10 September 21st, 2007 03:41 PM
config.xml klimi73 Other Languages 0 November 13th, 2005 03:30 AM


Search Engine Optimization by vBSEO 3.2.0 RC8