Redirect Manager Issues

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.
11/12/2010 1:00:57 PM
Gravatar
Total Posts 39

Redirect Manager Issues

This on IIS 7...

We are using the Redirect Manager to setup redirects for our old site's URLs to the new site.

It doesn't look like it's possible to set up a redirection to the site root. You can enter a '/' as the destination, but that results in a URL with two slashes on the end. I know we could redirect to the actual page name (in our case, home.aspx), but our SEO expert tells us this is undesirable, because it will appear as two different pages with identical content to search engines.

We also have the following set of rules (don't ask me why the old site's URLs look like this)

/info/details.aspx   redirects to /software/
/info/details.aspx/features_annotations redirect to /software/annotate
/info/details.aspx/features_delivery redirect to /software/share
/info/details.aspx/features_indexing redirect to /software/organize

However, when I test rules 2-4, it looks like the first rule is always matched and used. I assume it's because the URL continues after details.aspx for the original URLs and mojo must be be matching on the first rule and using it.

I guess the work around for these issues would be to use the URL Rewrite Module for IIS? Does it and mojoPortal play nicely together?

Thanks,

Kevin

 

11/12/2010 1:05:51 PM
Gravatar
Total Posts 18439

Re: Redirect Manager Issues

redirect to /home.aspx and in the page settings for your home page set the canonical url override to http://yoursiteroot/ and that will resolve any seo issues because the search engines will go by the canonical url rather than the actual url so it won't matter if the actual url is /, /home.aspx or /default.aspx.

Hope it helps,

Joe

11/12/2010 1:15:57 PM
Gravatar
Total Posts 39

Re: Redirect Manager Issues

Thanks Joe, that definitely helps and I learned something new.

Do you have any thoughts on the second issue I raised regarding the manager matching a different rule than I want it to?

Thanks,

Kevin

11/12/2010 1:29:27 PM
Gravatar
Total Posts 18439

Re: Redirect Manager Issues

We don't support extra / segments in the urls you are using for mojoportal pages like /software/annotate and I don't believe it is a good idea to try to reflect site hierarchy in the urls of a cms because in a cms you should be free to change the site hierarchy, but cool urls don't change, so reflecting the hierarchy in the url is not a good idea and mojoportal was not designed to do it. Also because we support running multiple sites in one installation based on folder names it is problematic to allow extra arbitrary / segments in the url.

http://www.mojoportal.com/search-engine-optimization.aspx

you could use /software-annotate if you really think the extra key word is helping your seo

to make it redirect urls that don't end with .aspx then you need to see the additional notes on this page

http://www.mojoportal.com/301-redirects.aspx

Also I advise don't believe everything "seo experts" tell you.

Hope it helps,

Joe

11/12/2010 1:55:38 PM
Gravatar
Total Posts 39

Re: Redirect Manager Issues

Caveat on the extra '/''s noted.

In this case I don't think the issue is with that or with the extensionless URLs. I have already configured extensionless URLs.

I can redirect /foo to /bar on my site without any problems.

However, if I attempt to redirect

/foo/default.aspx/bar to /foo

the extension manager doesn't catch it and I get a 404 on /foo/default.aspx/bar

It seems to be the presence of "default.aspx" in the middle that is breaking it.

11/12/2010 2:13:34 PM
Gravatar
Total Posts 18439

Re: Redirect Manager Issues

I'm not sure how to handle that, it does seem like it would expect the /foo/default.aspx page to handle the request regardless of the rest of the url. It is a strange url structure, the old urls you are redirecting.

Only thing I can think of to try is to create an actual folder /foo and in that folder put a default.aspx file that has code in it detect the rest of the url and to do a 301 redirect appropriately based on some logic about the rest of the url. I think it could be solved but would take some custom development to create the default.aspx pages for each folder with the needed redirect logic.

Hope it helps,

Joe

 

 

 

2/13/2011 9:02:38 PM
Gravatar
Total Posts 73

Re: Redirect Manager Issues

Since I had a similar desire to make the "Home" menu item take me to the site url without the "/home.aspx" on the end of the url, I found that by setting the friendly url for the page to a bare "~/" seemed to give the desired effect without any extra trailing "/".  Thought I'd share that for anyone trying to do the same.

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