Page 1 of 1

[SOLVED] Pretty URLs and News module gives 404 error

Posted: Sun Nov 11, 2012 1:49 pm
by webform
I have a fresh install of CMS Version 1.11.2.1 in a sub directory with mod_rewite enabled.
Every page url is working fine except News url's which gives me an 404 error.

The htaccess file is cmsms default with RewriteBase set to /foldername.

I also have another cmsms installation in the base directory, where all page url's including from News module working just fine.

What am i missing?

Re: Pretty URLs and News module gives 404 error

Posted: Sun Nov 11, 2012 9:47 pm
by timdebuurman
Maybe this?
--------------------------------
Troubleshooting - news module - error 404
Error message

Opening a news detail- or categorypage ends up in a error 404 - page doesn't exist.
Solution

When using the detailpage parameter in the news tag, it could be the set detailpage is switched inactive in the listcontent. Or perhaps renamed or removed.

Related categories: - m
-----------------------------------------

Re: Pretty URLs and News module gives 404 error

Posted: Mon Nov 12, 2012 7:18 am
by webform
No, it can be it. Everything works fine if i disable mod_rewrite.

It seems it some sort of problem with Pretty URLs and News module when the site is placed in a sub directory (www.domain.com/subdirectory).

I have copy of the site in the root, and here everything is working.

Re: Pretty URLs and News module gives 404 error

Posted: Wed Nov 14, 2012 2:24 pm
by Jean le Chauve
Aaah ! Great, thank you :)

Re: Pretty URLs and News module gives 404 error

Posted: Wed Nov 14, 2012 3:26 pm
by calguy1000
make sure you do not have a physical directory in the install named 'news'.

Re: Pretty URLs and News module gives 404 error

Posted: Thu Nov 15, 2012 1:30 pm
by webform
I'm puzzled! On my test server the Pretty URLs an News module works just fine, but on the live server i get an 404 error when i click on the detail link ???

I'm missing something here, but what?

Re: Pretty URLs and News module gives 404 error

Posted: Thu Nov 15, 2012 1:54 pm
by velden
What about the apache error log? Does it tell you where the rules direct you to?

Might be a starting point.

Re: Pretty URLs and News module gives 404 error

Posted: Thu Nov 15, 2012 1:57 pm
by Jo Morg
A search on the forum revealed that there were some more posts related... did you read: http://forum.cmsmadesimple.org/viewtopi ... 8&p=288470?

On that thread:
Dr.CSS wrote:At some point there was a new route thing in the News modules so most likely yours didn't take so clicking Update routes fixed it...
hth!

Re: Pretty URLs and News module gives 404 error

Posted: Fri Nov 16, 2012 10:49 am
by webform
"Update routes" seems to fix the problem - Thank you ;D

Re: [SOLVED] Pretty URLs and News module gives 404 error

Posted: Fri Nov 30, 2012 2:50 pm
by Jean le Chauve
I found the problem :
Updating routes (admin) empty "cms_routes" if mod_rewrite is on.
Then, if you clear cache, you got an error 404 for news and pages with alternate URL.

Re: [SOLVED] Pretty URLs and News module gives 404 error

Posted: Fri Nov 30, 2012 4:10 pm
by Jean le Chauve
Fixed in svn 8523.
Bug fixed one hour after being deposited : Calguy, you are the best :)