Results 1 to 6 of 6

Thread: subdomains

  1. #1

    subdomains

    Hi,

    I would like to be able to have a subdomain e.g. sub.mysite.com but i would like the subdomain to point to another site setup on the server.

    for example i have on my server two sites site1.com and site2.com i would like to be able to go to site2.site1.com and view site2.com.

    Hope this makes sense, thanks in advance

  2. #2
    Join Date
    Mar 2008
    Location
    New Zealand
    Posts
    217
    Maybe just create the subdomain then use a simple HTML redirect.

    Code:
    <meta http-equiv="Refresh"content="5;url=http://www.site2.com">
    Inside the head...

  3. #3
    I would say 301 redirect would be better in this case. Mostly for the SEO proposes

  4. #4
    Join Date
    Jul 2008
    Location
    Eta Carinae
    Posts
    2,671
    if you want people to be able to browse the site through the subdomain, you could just copy all files and folders into the subdomain.

    otherwise a redirect would as explained above.

  5. #5
    Join Date
    Jul 2009
    Posts
    70
    Hi,

    Do u have any control panel installed? Does the server support .htaccess?

    In htaccess,

    =========
    Options +FollowSymlinks
    RewriteEngine On

    RewriteCond %{HTTP_HOST} ^subdomain.example.com$ [NC]
    RewriteRule (.*) http://subdomain.example.com/$1 [R=301,L]
    =========

    Make sure that you place it in the correct location.

    cheers
    Last edited by manhalab; 09-19-2009 at 12:03 PM.

  6. #6
    yeah don't use a html direct use a 301 php direct. That and it will load a lot faster! I never use the head html redirects.

Similar Threads

  1. Wildcard DNS subdomains working, but existing subdomains not...
    By ThatScriptGuy in forum Hosting Security and Technology
    Replies: 10
    Last Post: 04-23-2010, 10:15 PM
  2. Subdomains connecting to other subdomains
    By DennisTT in forum Domain Names
    Replies: 2
    Last Post: 02-06-2005, 03:53 AM
  3. Subdomains
    By Catalogcom in forum Web Hosting
    Replies: 6
    Last Post: 09-14-2004, 09:21 PM
  4. Why use subdomains?
    By Mercedes in forum Running a Web Hosting Business
    Replies: 5
    Last Post: 03-03-2004, 06:21 PM
  5. Subdomains
    By hlshosting in forum Reseller Hosting
    Replies: 7
    Last Post: 01-29-2004, 04:32 PM

Posting Permissions

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