Redirecting after renaming

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/5/2011 11:08:04 AM
Gravatar
Total Posts 23

Redirecting after renaming

OS: Microsoft Windows NT 6.0.6002 Service Pack 2

DB: MSSQL 2008

Mojo: 2.3.7.0 MSSQL

 

I created a page named "Data" at the root level. I renamed it "News." I then created a new page called "Data" which automatically redirects to the page "News." I want this new data page to go to ~/data.aspx.

 

What I have tried:

I deleted both pages which seemed to clear them out of the URL manager. There was still an entry in the 301 redirect manager, so I deleted that as well. I then recreated both pages (no renaming this time), but I still run into the same problem - data still redirects to news.


Any thoughts?

10/5/2011 11:10:41 AM
Gravatar
Total Posts 18439

Re: Redirecting after renaming

See the article 301 Redirects, it explains why that redirect was created, you can remove it by deleting it in the Administration > Advanced Tools > 301 Redirect Manager

Hope that helps,

Joe

10/5/2011 11:12:50 AM
Gravatar
Total Posts 18439

Re: Redirecting after renaming

sorry I read your question too fast. I would double check that it really got deleted from 301 redirect manager and I would double check the url manager mappings.

10/5/2011 12:24:25 PM
Gravatar
Total Posts 23

Re: Redirecting after renaming

Thanks Joe,

The 301 redirect was definitely deleted - there is nothing listed there at all.

As for the URL Manager, I have:
data.aspx maps to default.aspx?pageid=12

and

news.aspx maps to default.aspx?pageid=13

To me, these seem unique, but data still redirects to news. If I delete the pages and create new ones, the old URL manager entries get deleted, and I get new ones with new pageid=# (in this case, probably 14), but it still redirects.

Am I missing something about the way the URL manager works?

Another piece of this that I don't understand regarding the URL manager is when I go to settings for one of the entries, I see something like:

Select Page from Dropdown List

data.aspx maps to Home

Or Use Expert Manual Entry

Default.aspx?pageid=12

 

The first part:

*.aspx maps to Home

is the same for every URL I look at (always maps to home). Is this correct? This is true for the pages that work as expected and the couple I am having trouble with.

10/5/2011 2:06:31 PM
Gravatar
Total Posts 18439

Re: Redirecting after renaming

Hi,

I'm beginning to think you have something else doing that redirect like an IIS module, or javascript in the content on the page that does the redirect. I would use a tool like fiddler, and see what exactly is going on, is it really redirecting, is it a 302 or a 301 redirect etc.

Url manager doesn't redirect, those mappings are for url rewriting which doesn't do any redirect.

I would look into whether you have any IIS modules like the IIS Url Rewriter which can be configured for redirects.

Hope that helps,

Joe

10/5/2011 2:08:37 PM
Gravatar
Total Posts 18439

Re: Redirecting after renaming

oh, and what you see in url manager is if you wanted to change the url mapping, home is not selected, it is just the first item in the list, only if you click that save button then you would be mapping the url to the home page. The text box has the current mapping.

Best,

Joe

10/7/2011 1:21:13 PM
Gravatar
Total Posts 23

Re: Redirecting after renaming

It works but there is still some slightly odd behavior. First, Fiddler is a very cool tool. Thanks for the tip! Basically, in order to stop the redirect from happening, I have to close out of all browser windows and restart my browser(s), and it works fine. Just logging out and logging back in doesn't work. And here's the part that makes no sense to me - I had IE and Firefox open, and I had to close BOTH to get it to "reset" and work correctly. Just closing Firefox and restarting it didn't work. I had to close IE as well.

Thanks for your help!

You must sign in to post in the forums. This thread is closed to new posts.