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. Quote 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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/174752-problem-in-htaccess-file/#findComment-920939 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.