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 Link to comment https://forums.phpfreaks.com/topic/128523-user-profile-with-user-name-extension-help-need/ 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. Link to comment https://forums.phpfreaks.com/topic/128523-user-profile-with-user-name-extension-help-need/#findComment-666053 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.. Link to comment https://forums.phpfreaks.com/topic/128523-user-profile-with-user-name-extension-help-need/#findComment-666081 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. Link to comment https://forums.phpfreaks.com/topic/128523-user-profile-with-user-name-extension-help-need/#findComment-666099 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 Link to comment https://forums.phpfreaks.com/topic/128523-user-profile-with-user-name-extension-help-need/#findComment-666336 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. Link to comment https://forums.phpfreaks.com/topic/128523-user-profile-with-user-name-extension-help-need/#findComment-666359 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.