.htaccess help

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
yshaf13
Forum Commoner
Posts: 72
Joined: Mon Apr 03, 2006 7:59 pm

.htaccess help

Post 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?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: .htaccess help

Post by Benjamin »

Have you looked into using an alias?
yshaf13
Forum Commoner
Posts: 72
Joined: Mon Apr 03, 2006 7:59 pm

Re: .htaccess help [SOLVED]

Post 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
Post Reply