Jump to content

Help creating subdirectory/subdomain on register


Jewbilee

Recommended Posts

Hey guys, I need a little help with this.. everyone knows when you create a myspace, its makes your url something like this:

www.myspace.com/usernamehere

what I want to know is how to do the /usernamehere part...

Is it just creating a seperate folder and adding files or what?
[quote author=corbin link=topic=116926.msg476691#msg476691 date=1164942299]
Hmm lemme find an article that helped me a ton with that...

edit: Found it!

http://www.sitepoint.com/article/search-engine-friendly-urls/2
[/quote]
Sitepoint is crap.

An easy way to do it would be to use mod_rewrite.  Something along the lines of if the file isn't /images/ or /anyOtherFolderYouHave/ and doesn't have an extension, pass it to like view_profile.php and search the database for a user with that username.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.