homepage Welcome to WebmasterWorld Guest from 54.242.126.9
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
.htaccess question related to subdomains.
I'd like to change the path location of a subdomain..
crowthercm

10+ Year Member



 
Msg#: 335 posted 2:47 pm on Aug 15, 2003 (gmt 0)

Hello,

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:

..../public_html/pointed_domain/subdomain

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

..../public_html/pointed_domain/category/subdomain

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

Thanks,
Chris

 

jdMorgan

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



 
Msg#: 335 posted 4:46 pm on Aug 15, 2003 (gmt 0)

crowthercm,

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]

HTH,
Jim

crowthercm

10+ Year Member



 
Msg#: 335 posted 5:06 pm on Aug 15, 2003 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved