Jump to content

Odd Redirect Issue


unemployment

Recommended Posts

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?

 

Link to comment
https://forums.phpfreaks.com/topic/255692-odd-redirect-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.