PDA

View Full Version : Create Automatic subdirectories for users



javitolin
03 May 2011, 03:20 AM
Hi, I am new here, and this is my first post.
I wanted to know if there is any way to automatically create sub-directories into a server for each user, where they can insert a small perfil page.
example: my username is javitolin. So I want to have a: www._____.com/javitolin.
Thanks!

Quasha
04 May 2011, 04:47 AM
Use DirectoryIndex directive in your apache configuration file(apache/conf/httpd.conf).and give index.php to be first called in tha directive.for this add
DirectoryIndex index.php line in httpd.conf fiel.

create a index.php file in root folder of your server(htdocs)
and redirect the page to your page by using header("Location:mypage.php").