Jump to content

User Profile with user name extension.. Help Need


vamsig

Recommended Posts

It is possible to register User. The present script i have will take care of change in name, email address and sex. That is fine.

 

Now I need to show the user Profile as Open profile Like.

 

http://localhost/userscript/registerduser1

http://localhost/userscript/registerduser2

http://localhost/userscript/registerduser3

 

Above userscript is my local folder wher the script is located

registereduser1 is the name of the registered user Profile.

 

I need like above.

 

for example www.myspace.com/registerduser1

 

Thanking you in advanse

 

Okay what you are after is mod_rewrite. It's not PHP related. You should Google it. Basically, it sets up a 'rule' which writes the URL http://localhost/userscript/registerduser1 as http://localhost/userscript/user.php?u=registerduser1

But the person does not see the re-written URL. It's a nifty thing to have.

It's not the PHP you need to do. You use Mod Rewrite in a .htaccess folder.

 

I'm not that good with .htaccess myself, but I will modify what I have on my website for you.

 

Create a .htaccess file and put it in the root directory of your website.

 

Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteRule ^([^/\.]+)?$ /userscript/registerduser1/$1 [L]

 

If it doesn't work, play around and see what you can get.

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.