php - Dynamic hosting on Apache with two differently constructed URLs -
i have created cms uses url directory name - this:
virtualdocumentroot /var/www/html/%0
so, www.somesite.com
served from: /var/www/html/www.somesite.com
this works, but, need sandbox url because site url not available @ time site beingness created.
so, in add-on routing normal url, need route directory:
www.mycmsthingy.com/somesite
other cmss must have solved problem can’t seem find examples.
my understanding running both in same linux server machine
www.somesite.com - virtualdocumentroot @ /var/www/html/www.somesite.com
www.mycmsthingy.com - virtualdocumentroot @ /var/www/html/www.mycmsthingy.com
if true, can symlink virtualdocumentroot want:
cd /var/www/html ln -s www.somesite.com www.mycmsthingy.com/somesite
in browser, http://www.mycmsthingy.com/somesite/
have contents of www.somesite.com
php .htaccess mod-rewrite virtualhost
No comments:
Post a Comment