Some .htacces help please?

Discussion in 'Site & Server Administration' started by Raine1988, Oct 24, 2007.

  1. #1
    Good day everyone,

    For starters i suck at .htaccess

    My situation:
    I have www.domain.com as my main domain.
    I have www.addondomain.com as my addon domain (on the same account as domain.com)
    I have images.addondomain.com as a subdomain

    The Directories
    www.domain.com >> /home/raine/public_html/
    www.addondomain.com >> /home/raine/public_html/addondomain/
    images.addondoman.com >> /home/raine/public_html/images/

    The problem is that cpanel cannot make a subdomain of a addondomain inside it’s own dir...it must go in the root dir.

    I was hoping somebody with some .htaccess skill can make one that will do the following:

    -When images.addondomain.com gets requested
    -Instead of using /home/raine/public_html/images/
    -Use /home/raine/public_html/addondomain/images/

    Who is going to be my hero!!
     
    Raine1988, Oct 24, 2007 IP
  2. litebulb1

    litebulb1 Peon

    Messages:
    151
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In cpanel you can change the subdomain to be /home/raine/public_html/addondomain/images/

    When you make the subdomain in cpanel you can specify where the document root is.
     
    litebulb1, Oct 26, 2007 IP