unemployment Posted January 24, 2012 Share Posted January 24, 2012 My profile pages can be accessed via domain.com/u/username When I am on them and I click a link that goes to /account-setting I get redirected to /u/account-settings which is not the correct path. I don't think this is a rewrite issue. Rewrite rule: RewriteRule ^u/(.*)$ /profile.php?u=$1 [QSA,L] On my profile page I have: if (isset($_GET["u"])) { $username = mres($_GET["u"]); } else if (isset($user_info["username"])) { $username = mres($user_info["username"]); } The really odd thing is that when I hover over the link. Firefox even displays domain.com/account-settings in the explore at the bottom of the page. Any idea why this is getting rewritten? Quote Link to comment https://forums.phpfreaks.com/topic/255692-odd-redirect-issue/ 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.