mod_rewrite and subdomain help

Discussion in 'Search Engine Optimization' started by arestia, Jun 2, 2004.

  1. #1
    i have a couple subdomains that are currently only accessable via http://subdomain.arestia.com/ and i want them to also be accessable via http://www.subdomain.com/

    could someone help me out in writing what i need to have in my .htaccess file for this to work

    thanks
    dan
     
    arestia, Jun 2, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Well, do you already own the domain subdomain.com? Because you will need to.
     
    digitalpoint, Jun 3, 2004 IP
  3. arestia

    arestia Peon

    Messages:
    89
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    arestia, Jun 3, 2004 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Yeah, you can do that, it would just be a configuration of your DNS and web server.
     
    digitalpoint, Jun 3, 2004 IP
  5. arestia

    arestia Peon

    Messages:
    89
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    is it still possible with using mod_rewrite and .htaccess?

    -dan
     
    arestia, Jun 3, 2004 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    No, you would need to configure the web server and DNS to respond to both URLs.
     
    digitalpoint, Jun 3, 2004 IP
  7. arestia

    arestia Peon

    Messages:
    89
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    for this type of dns entry what would be the host, record type, and value?

    -dan
     
    arestia, Jun 3, 2004 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    Something like this would work:
    www.subdomain.arestia.com.  in cname subdomain.arestia.com.
    Code (markup):
     
    digitalpoint, Jun 3, 2004 IP
  9. tommseo

    tommseo Peon

    Messages:
    285
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If you are using wordpress blog that its very simple just you need to click the desired option and its done.
     
    tommseo, Aug 7, 2009 IP