Forum Moderators: phranque

Message Too Old, No Replies

Apache user-homepages

         

Pentti

11:28 am on Jul 1, 2005 (gmt 0)



Is it possible to change that /home/user/public_html domain.com/~user to user.domain.com without writing .htaccess files to every new user?

jdMorgan

1:28 am on Jul 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Pentti,

Welcome to WebmasterWorld!

Yes, it can be done with 4 or fewer lines added to httpd.conf or .htaccess that detect the user subdomains and rewrite the request to the ~user subdirectories.

Try a search on WebmasterWorld for "subdomain subdirectory rewriterule" for many examples.

Jim