VirtualHost block Alias lines?


(Nolan) #1

My Hosting provider provides a cpanel to manage the back end of my websites. Is there a way to do this through one of the modules provided there? There is an "Ad on Domains" module that lets you setup redirections, there is a "Sub-Domain maintenance" that again looks like it allows you to redirect.


Side Note: When I installed mysource the installer created a .htaccess file in the root of my main-domain with the following;



"Options +FollowSymLinks

RewriteEngine On



#Set the base uri

RewriteBase /

#Now do some rules for redirection

#if index, don't redirect (again)

RewriteRule index.php - [L]

#don't redirect double-underscore dirs

RewriteRule __lib - [L]

RewriteRule __data - [L]

RewriteRule __fudge - [L]

#redirect everything else to index.php

RewriteRule (.*) index.php/$1 [L]"



Do I need to edit this file to include my sub-domain?



lando,


(Avi Miller) #2

I imagine the easiest thing to do would be to copy the .htaccess file from the root of your main domain into the root of your subdomain. Then, recreate the symlinks from the root of your domain domain in the root of your subdomain as well. This should make both the main domain and the subdomain point to the same copy of MySource Matrix.


You will then need to add both the main domain and the subdomain name to the list of System Root URLs in Matrix's System Configuration screen. You can then create a site for each domain (or point both domain names at a single site).