404 page behaviours

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
gianpiero
Forum Members
Forum Members
Posts: 221
Joined: Sun Jan 07, 2007 4:32 pm

404 page behaviours

Post by gianpiero »

I published my site with URL REWRITE two days ago, upgrading previous version where URL REWRITE was no active. Old address are on google cache like:
http://www.mysite.com/index.php?page ...
Most of pages are title-renamed, so i decided to prepare a "404" page inside CMSMS 1.9.4.3 through
add new content > drop down menu > error page

I putted some content inside like "invitation to search" or "please go to menu " and so on...

It works fine in most of case, whit only an exception:
if the address was a news and address is similar to:

Code: Select all

http://www.mysite.com/index.php?mact=News,cntnt01,print,0&cntnt01articleid=68&cntnt01showtemplate=false&cntnt01returnid=106?
there are 2 behaviour:
- the news exist: it is displayed inside a blank page, with no template ( see the string template false ) and the address is not REWRITED
- the news doesn't exist: 404 doesn't appear, but only a blank page with:

Categories:
Date:
Title:

I made some experiments and discovered that the "?" is the difference.
If I copy and paste the same address with no "?" eg:

Code: Select all

http://www.mysite.com/index.phpmact=News,cntnt01,print,0&cntnt01articleid=68&cntnt01showtemplate=false&cntnt01returnid=106?
this case the ERROR PAGE appears correctly

Why "?" doesn't allow the old address to be REWRITED to my ERROR PAGE correctly?

bye
gianpiero
Post Reply

Return to “CMSMS Core”