Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

.htaccess question related to subdomains.

I'd like to change the path location of a subdomain..



2:47 pm on Aug 15, 2003 (gmt 0)

10+ Year Member


I've heard that it's possible to modify the paths of subdomains using the .htaccess server file. Does anyone know how this is done and the implications with it? (i.e. any performance limitations?)

Namely, my subdomain is located at:


Because I've just created a new content manager, I'd like to move the subdomain to:


Can this be done simply or is it better to pester our server admin to do it.



4:46 pm on Aug 15, 2003 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member


There are several ways to rewrite URLs to redirect them to a new subdirectory. Apache mod_alias [httpd.apache.org] and mod_rewrite [httpd.apache.org] modules both support this function.

In addition, you can do it at the server level in httpd.conf, or in a per-directory context using .htaccess.

Server performance impact is minimal - much less than calling up any script.

Ref: Introduction to mod_rewrite [webmasterworld.com]



5:06 pm on Aug 15, 2003 (gmt 0)

10+ Year Member

Thanks for the resources, I'll look into each.

Featured Threads

Hot Threads This Week

Hot Threads This Month