Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Setting up so that a subdomain point to site

  • 26-05-2005 7:14pm
    #1
    Closed Accounts Posts: 583 ✭✭✭


    Im about to register a domain with www.letshost.ie and get some webspace as well

    so lets say im registering www.stuey.com and im also allowed 20 sub domains

    www.stuey.com is going to point to another webiste that i have
    www.data.stuey.com is going to point to the webspace

    i also have a few other website (mainly registered with freewebs)

    is it possible for me to set up a subdoamin www.xxxx.stuey.com that will point to one of my other websites. i have been told that it is possible with some sort of php code but i want to make sure before i commit anything

    cheers


Comments

  • Closed Accounts Posts: 6,601 ✭✭✭Kali


    Excuse me for possibly being pedantic (and I'm sure someone will correct me).. but www.data.stuey.com isn't a sub-domain of stuey.com .. data.stuey.com would be... I don't see any need for the www there at all apart from confusing people.


  • Closed Accounts Posts: 583 ✭✭✭stuey


    thanks for correcting that Kali, still any ideas if it is possible?


  • Registered Users, Registered Users 2 Posts: 4,104 ✭✭✭muckwarrior


    Well you could easily write a simple ASP/PHP/JSP page to redirect a user to wherever you want. Also some hosting providers will let you set up a redirect in your domain control panel.


  • Closed Accounts Posts: 2,161 ✭✭✭steve-hosting36


    Maybe this is really a pre-sales question for the host you are reviewing? If they dont know the answer then maybe you should consider your options :)


  • Registered Users, Registered Users 2 Posts: 1,065 ✭✭✭Snowbat


    A subdomain, just like a hostname, can only point to IP address(es), nothing else. You point your subdomain at the IP address of the server that will host your service. Your http server has the ability to do a 301/302 redirect to another site or to a specific page at a site.

    For the subdomains needing only http service, if your hosting provider is willing, one option is to point these subdomains at the IP address of your main http server and ask the administrator to set up virtual hosting for those subdomains with 301 redirects to the specific URLs you want.


  • Advertisement
  • Closed Accounts Posts: 154 ✭✭smorton


    put the following code on the page:

    <script>
    location="http://www.your-website.com&quot;
    </script>

    automatically relocates

    im not totally sure wat ur asking. am i anywhere near?


  • Registered Users, Registered Users 2 Posts: 7,740 ✭✭✭mneylon


    Snowbat wrote:
    A subdomain, just like a hostname, can only point to IP address(es), nothing else.

    That's not entirely true.
    You could use a CNAME instead of an A
    But if you want to get it to point at a specific file you would have to use a redirect of some kind, probably a .htaccess or similar.


Advertisement