one domain using multiple website folders

New to mod_rewrite? This is a good place to start.

one domain using multiple website folders

Postby GroundLoop » Sun Sep 09, 2012 6:39 pm

I want to allow http://www.abc.com to use folder c:\wamp\abc and http://www.abc.com/blog use folder c:\wamp\abbcblog. I found some sample code using Alias but it did not work. I need http://www.abc.com to use a port redirect - which works fine by itself. Is the port redirect causing a problem for the Alias? All the Alias code I added is bolded.
<VirtualHost 192.168.2.4:80>
ServerName http://www.abc.com
RewriteEngine on
RewriteRule ^(.*)$ http://www.abc.com:9999/myprogram.html
ErrorLog logs/www.abc.com-error_log.log
CustomLog logs/www.abc.com-access_log.log common

Alias /blog C:\wamp\www\test\blog
<Directory C:\wamp\www\test\blog>
Options All
AllowOverride All
order allow,deny
allow from all
</Directory>

</VirtualHost>

Thank you in advance.
GroundLoop
 
Posts: 6
Joined: Tue Jul 14, 2009 6:45 am

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 12 guests

cron