ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Can I redirect subdomain to specific template group using Apache httpd.conf?

July 30, 2009 2:53am

Subscribe [3]
  • #1 / Jul 30, 2009 2:53am

    SSM

    33 posts

    it doesn’t really like:

    /var/www/html/expressionengine/index.php/mobile

    Can a subdomain be sent to a virtual folder using this file?

  • #2 / Jul 30, 2009 3:39am

    Ingmar

    29245 posts

    What you have there is a server path, linking to a (non-existent) directory on the server. A subdomain can be sent to a specific template(group), but you need to keep it URL based, as it were.

  • #3 / Jul 30, 2009 1:32pm

    SSM

    33 posts

    How do I accomplish that?

      <VirtualHost 111.22.33.55>
      DocumentRoot /www/otherdomain1
      ServerName http://www.otherdomain1.tld
      ...
      </VirtualHost>

    is the type of setup I’m using now.  I don’t think I can stick a URL there.

  • #4 / Jul 30, 2009 3:18pm

    Ingmar

    29245 posts

    No, you’d probably need some sort of rewrite.

  • #5 / Aug 23, 2009 10:14pm

    bluesonora

    90 posts

    No, you’d probably need some sort of rewrite.

    hhm. doesn’t quite work for me. i need the same thing ... i’m on engine hosting and can’t quite figure out how to map the subdomain 10kswimmer.thewaterisopen.com to http://www.thewaterisopen.com/10kswimmer (which is an EE template group…). any other thoughts? 😉

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases