Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Domain Setup

  1. #1
    New Coder
    Join Date
    Feb 2009
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domain Setup

    I have a domain name that I have purchased

    domainexample.co.uk

    However I want this domain name to go to a particular folder on webspace that I have associated with a different domain:

    domainexample2.co.uk/examplefolder

    Is this possible, where would I need to configure for this to happen?

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,549
    Thanks
    8
    Thanked 1,095 Times in 1,086 Posts
    The only thing I can think of is to aim your new domain name (the one you purchased)
    to the same server as your other website. Then, on your other website, you set-up
    a redirect. This happens on the control panel of your website, or ask your webhost.

    Very similar to having a .com and .net pointing to the same website.

    The final catch is to send the proper domain name to the proper directory.
    I suppose that would be something in .htaccess?

    What happens with search engines and SEO is beyond me (on this one).

    If it were me, I would keep the websites separate ... since webhosting accounts are so
    cheap these days, why not just have them as two separate sites?

    .

  • #3
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Rewriting URLs is the way to go. A htaccess file with RewriteModule will easily send a 301 Moved Permenantly HTTP status code the browser and redirect you to the respective page on the other site.

  • #4
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Right, and sometimes your host provides something in the CPanel that allows you to do this without programming something. Perhaps asking your hosting provider or searching their documentation will help there.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •