Hi guys and gals,
I was just wondering if anyone could possibly help me with an issue I have. I'm trying to create virtual subdomains for use on my site.
I've browsed about a bit, and since I'm not terribly good with mod_rewrite I was wondering if someone could help me?
I have the following in my .htaccess file (in /home/myname/mainwebsite_html):
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{REQUEST_URI} !^/subs/
RewriteCond %{HTTP_HOST} !^(www\.)?killiongconversation\.com [NC]
RewriteCond /home/myname/mainwebsite_html/subs/%1/index.php -f
# have also tried '/var/www/html/..' in the line above.
RewriteRule .* /subs/%1/index.php [L] Any help would be greatly appreciated.
Thank you in anticipation,
=]