Co-Domains and SubFolders

Discussion in 'Installation/Configuration' started by digitalplace, Jun 25, 2007.

  1. digitalplace

    digitalplace New Member

    I have created subfolders for my subdomain, like inside of
    Folder Structure
    /var/www/web1/web/www - Document Root
    /var/www/web1/web/system - Document Root

    I have added as a codomain, so that is done.
    I have also found this code that will work with the subdomain

    RewriteEngine On
    RewriteCond %{REQUEST_URI} !^//(.*)?$
    RewriteCond %{HTTP_HOST} ^(www\.)?([^.]+)\.example\.com$ [NC]
    RewriteRule ^(.*)$ //%2/$1 [QSA,L]
    This is posted in my Apache Directives section.

    The problem is that this seems to break my ability to go to:

    I am also trying to use the alias to allow people to go to

    I found this code

    AliasMatch ^/~joesmith(/(.*))? /var/www/web1/user/web1_joesmith/web/$1
    to do this. This is also posted in the Apache Directives. The code will work, but not when the subdomains are setup using the Rewrite code above.

    Any help that someone could give would be greatly appreciated.

    Thank you.

  2. till

    till Super Moderator Staff Member ISPConfig Developer

Share This Page