sunil_23413 Posted September 18, 2009 Share Posted September 18, 2009 Hello here is my site http://mygradregistry.com. when user goes to link "http://mygradregistry.com/profile.php" then it should look like "http://mygradregistry.com/username" showing the content of profile.php i have username in my session variable. Link to comment https://forums.phpfreaks.com/topic/174752-problem-in-htaccess-file/ Share on other sites More sharing options...
RussellReal Posted September 18, 2009 Share Posted September 18, 2009 RewriteRule ^/([a-z0-9]+)$ profile.php?username=$1 Link to comment https://forums.phpfreaks.com/topic/174752-problem-in-htaccess-file/#findComment-920937 Share on other sites More sharing options...
sunil_23413 Posted September 18, 2009 Author Share Posted September 18, 2009 Hello here is my site http://mygradregistry.com. when user goes to link "http://mygradregistry.com/profile.php" then it should look like "http://mygradregistry.com/username" showing the content of profile.php i have username in my session variable.$_SESSION['user_id'] i am new to .htaccess so please give me brief explanation, Thanks Link to comment https://forums.phpfreaks.com/topic/174752-problem-in-htaccess-file/#findComment-920939 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.