vamsig Posted October 15, 2008 Share Posted October 15, 2008 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 Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted October 15, 2008 Share Posted October 15, 2008 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. Quote Link to comment Share on other sites More sharing options...
vamsig Posted October 15, 2008 Author Share Posted October 15, 2008 thanking you.. but any one know please find me the solution.. Quote Link to comment Share on other sites More sharing options...
revraz Posted October 15, 2008 Share Posted October 15, 2008 You can find the solution by searching how to use Mod Rewrite, as suggested. Quote Link to comment Share on other sites More sharing options...
vamsig Posted October 15, 2008 Author Share Posted October 15, 2008 no sorry.. am not expert in php Quote Link to comment Share on other sites More sharing options...
JasonO Posted October 15, 2008 Share Posted October 15, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.