Url Manager and the '+' character

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
5/18/2011 2:31:49 PM
Gravatar
Total Posts 6

Url Manager and the '+' character

Hi,

I'm migrating a site from another CMS to mojo and quite a few of the legacy paths used a '+' character.   I've tried to get both the 301 redirect and the URL manager to work with these but no luck.

As an example in URL Manager-

this works: resources/resources_books.aspx

this does not: resources/resources+books.aspx

I didn't create the legacy site, I'm not sure why they used the + as a placeholder but apparently, a '+' is a valid character in a URL.  Any help or suggestions would be appreciated.

 

john

 

5/18/2011 4:17:24 PM
Gravatar
Total Posts 18439

Re: Url Manager and the '+' character

The plus sign is what spaces get encoded to when a string such as a file name gets url encoded.

My guess is this legacy app actually had spaces in the file names, which most experienced web developers would not do. In fact we strip out spaces in urls entered by users in mojoportal (at least in url manager, not sure about 301 redirect manager).

I guess you might try going directly into the the database if the ui doesn't let you try using spaces instead of plus signs. I'm not sure that will solve it but it might.

Hope that helps,

Joe

5/18/2011 5:44:50 PM
Gravatar
Total Posts 6

Re: Url Manager and the '+' character

Thanks Joe,

I gave that a shot and I'm still getting a 404 on the paths with the '+'. 

john

 

 

 

5/24/2011 8:39:17 AM
Gravatar
Total Posts 18439

Re: Url Manager and the '+' character

If you have control of the machine and it uses IIS 7.x then you might take a look at the IIS Url Rewriter module. You "may" be able to configure it to do the 301 redirects based on a pattern. This url rewriting happens before the request would even get to mojoPortal. Be careful though as a mistake in the redirect pattern can cause unexpected results with other urls.

Best,

Joe

6/3/2011 12:10:03 PM
Gravatar
Total Posts 6

Re: Url Manager and the '+' character

Turns out this is related to a 'Feature Enhancement' of IIS 7.  If anyone else has a problem with + plus signs in paths or URLs:

404 with URL with a + plus symbol

cheers,

john

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