Page 1 of 1

.htaccess help

Posted: Thu Mar 05, 2009 6:57 pm
by yshaf13
Hi, I need some .htaccess help - google just isn't cutting it...
i have an A Record for sub.externaldomain.com redirecting to my personal ip address. however i need the document root for it to be docroot/folder/folder but the url has to stay the same. how do i go about this?

Re: .htaccess help

Posted: Thu Mar 05, 2009 8:47 pm
by Benjamin
Have you looked into using an alias?

Re: .htaccess help [SOLVED]

Posted: Thu Mar 05, 2009 9:36 pm
by yshaf13
I actually figured it out (go google!)
This is what I'm using and it working fine.

Code: Select all

RewriteEngine on
RewriteCond %{HTTP_HOST} ^sub.domain.com$
RewriteRule ^(.*)$ /pics/web/$1