Hey all, so to the point I am trying to add a user blog registration on my site and I would like the URLS to be as a subdirectory I tried searching for domain mapping or mod_rewrite and I am coming up empty handed.. Right now the URL looks like this: blahblah.com/blog.php?id=YOURBLOG I would like it to be http://YOURBLOG.blahblah.com Any solutions, good tutorials any of you know of?
mod_rewrite is the way to go. You will need to store the subdom names in a database so that it is only unique. Rewrite the http://sub.domain.com URL using mod_rewrite and redirect to the desired page. you wont be able to create subdirectories because of php restriction.
ok thanks, i will see if i can work a mod_rewrite out and use the "subdirectory" as the username for now