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?
Link to comment
Share on other sites

[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.
Link to comment
Share on other sites

[quote]i still need help with mod_rewrite.. ive found tutorials online but im not getting it..[/quote]

So what do you want us to do? Write another tutorial especially for you?

Why dont you post what you have, and tell us whats not working?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.