Hi all, I'm halfway through creating a automatic free forum hosting site. I know very little about htaccess though. I have set everything up for dynamic subdomains, now just need the right htaccess code to do the following: I need first of all: SUB.domain.com >> domain.com/inst (static) However I also need: SUB.domain/config.php >> domain.com/configs/SUB.php Anyone know how to accomplish this with htaccess? Thanks Rhett
RewriteEngine On RewriteCond %{HTTP_HOST} ^test\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.test\.com$ RewriteCond %{REQUEST_URI} !^/new/ RewriteRule (.*) /new/$1 change RED color with your domain or sub domain
You're a genius. I've been working at this forever trying to figure it out. Seems to be working great!!!!!!!!!!!!!!!!