Friendly URL not working

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.
6/12/2013 7:05:52 PM
Gravatar
Total Posts 2

Friendly URL not working

-------------------------------------------------------------------------------------

What operating system? Windows XP
What database platform? SQL SRV 2008 R2
What version of mojoPortal? 2.3.9.7 MSSQL
What version of .NET? v 4.0.30319 Full Trust

---------------------------------------------------------------------------------------

I have installed Mojo few times now and I never had a problem.

Now it's a couple of days that after installing Mojo the friendly URL does not work.

This is what I am doing:

  1. Download the latest version of Mojo code using TortoiseHG
  2. Create a new DB
  3. Setup IIS
  4. Run the Mojo portal Setup
  5. Everything works fine and I can see the site

Just after completing the installation If I click on the "Home" link in the navigation bar I get "The page can not be found" but If I visit Default.aspx?pageid=1 everything is fine.

If I go into Administration >> Add/Edit Pages >> Add a new page, click the Create New page button I get the error  "The page can not be found" but if I visit the new url Default.aspx?pageid=2 I can see the page no problem and the link for the new page is in the navigation bar, but if I click on it I get the error above.

This is the reason why I think it's a problem with the friendly URL.

I do think that some settings in the database are causing this problem, because if I change the connection string to use another database that I have installed few weeks ago for another website everything works fine, but I can not understand why it is not working for the new project.

I have tried already a couple of times to download the code and start everything from the beginning but I always get the same problem.

Any help please?

Thank you

6/13/2013 11:07:18 AM
Gravatar
Total Posts 18439

Re: Friendly URL not working

"What operating system? Windows XP"

My condolences to you ;-D

There was a change so that now we default to use extensionless urls because nowadays most people have IIS 7.x or higher and friendly urls work whereas back in IIS 6 and lower it could not work without 3rd party isapi handlers installed. So in the past we defaulted page url format to use .aspx extension but now we default to no extension. But of course on XP it won't work without .aspx.

So, what you need to do is:

  1. Make sure you have this in user.config: <add key="AllowChangingFriendlyUrlPattern" value="true" /> (touch web.config to recycle and reload settings)
  2. Go To Administration > SiteSettings and choose the friendly url pattern to use .aspx from the dropdown list.
  3. Go to page settings in the home page and change the url to have .aspx and save the page.
  4. Go to Administration > Advanced Tools > 301 Redirect Manager and delete any unwanted redirects there that may be created when you change urls from page settings.
  5. Double check under Administration > Advanced Tools > URL Manager to make sure all the firendly url mappings have a .aspx extension.
  6. Now you can create new pages normally

Hope that helps,

Joe

6/13/2013 3:28:51 PM
Gravatar
Total Posts 2

Re: Friendly URL not working

Thank you Joe! Excellent answer.

Enjoy the beers

 

6/14/2013 10:22:12 AM
Gravatar
Total Posts 18439

Re: Friendly URL not working

Glad I was able to help. Many thanks for the beers!

Cheers,

Joe

10/3/2013 10:09:16 PM
Gravatar
Total Posts 2

Re: Friendly URL not working

After having to move a mojoportal site from a failing Arvixe server to a new one, I've had nothing but problems. Most are resolved, but friendly URLs no longer work and there's no errors about any components not loading.  The friendly URLs are the .aspx ones but I always get the asp.net 404 (not IIS's 404) when I follow the View Friendly URL link from URL Manager (and no, the extensionless version of the URL doesn't work either).

Any help would be appreciated.

 

10/4/2013 2:39:56 PM
Gravatar
Total Posts 18439

Re: Friendly URL not working

Please start a new thread in the Installation Help Forum and provide more information including:

  • what version of mojoPortal under Administration > System Information?
  • ​what version of .NET framework
  • what operating system?
  • Integrated App Pool or Classic
  • Still hosted at Arvixe or somewhere else?
  • What other problems you had and what you did to resolve them (possibly things that resolved other problems may have caused this one)
  • If possible post the url to your site so the problem can be observed first hand
You must sign in to post in the forums. This thread is closed to new posts.