[SOLVED] Pretty URLs and News module gives 404 error

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
webform
Power Poster
Power Poster
Posts: 458
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

[SOLVED] Pretty URLs and News module gives 404 error

Post 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?
Last edited by webform on Fri Nov 16, 2012 10:50 am, edited 1 time in total.
User avatar
timdebuurman
Power Poster
Power Poster
Posts: 891
Joined: Sun Nov 06, 2011 8:15 pm
Location: Deventer, Netherlands

Re: Pretty URLs and News module gives 404 error

Post 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
-----------------------------------------
NextDoorMedia - Online Marketing Partner
https://www.nextdoormedia.nl
webform
Power Poster
Power Poster
Posts: 458
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: Pretty URLs and News module gives 404 error

Post 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.
Jean le Chauve

Re: Pretty URLs and News module gives 404 error

Post by Jean le Chauve »

Aaah ! Great, thank you :)
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Pretty URLs and News module gives 404 error

Post by calguy1000 »

make sure you do not have a physical directory in the install named 'news'.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
webform
Power Poster
Power Poster
Posts: 458
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: Pretty URLs and News module gives 404 error

Post 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?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Pretty URLs and News module gives 404 error

Post by velden »

What about the apache error log? Does it tell you where the rules direct you to?

Might be a starting point.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1921
Joined: Mon Jan 29, 2007 4:47 pm

Re: Pretty URLs and News module gives 404 error

Post 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!
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
webform
Power Poster
Power Poster
Posts: 458
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: Pretty URLs and News module gives 404 error

Post by webform »

"Update routes" seems to fix the problem - Thank you ;D
Jean le Chauve

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

Post 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.
Jean le Chauve

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

Post by Jean le Chauve »

Fixed in svn 8523.
Bug fixed one hour after being deposited : Calguy, you are the best :)
Post Reply

Return to “Modules/Add-Ons”