SirDarren
07-09-2009, 07:47 PM
I know plenty about XHTML, CSS, etc., and I'm currently learning PHP, but when it comes to .htaccess, etc. I have yet to learn! :)
Basic rundown:
I have a blog at "blog.example.com", in the directory "example.com/blog".
That works fine.
I also have "example.com" redirecting to "blog.example.com" via .htaccess using the code:
RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$ [NC]
RewriteRule ^ http://blog.example.com [R=301,L]
The problem with this is that I can't use any URL such as "example.com/something" because it's just redirecting to the blog.
Is there a way to exclude certain directories being redirected to the "blog" subdomain, or anthing else that would work?
Thanks a LOT in advance! :D
Basic rundown:
I have a blog at "blog.example.com", in the directory "example.com/blog".
That works fine.
I also have "example.com" redirecting to "blog.example.com" via .htaccess using the code:
RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$ [NC]
RewriteRule ^ http://blog.example.com [R=301,L]
The problem with this is that I can't use any URL such as "example.com/something" because it's just redirecting to the blog.
Is there a way to exclude certain directories being redirected to the "blog" subdomain, or anthing else that would work?
Thanks a LOT in advance! :D