404 page behaviours
Posted: Tue Sep 20, 2011 6:44 pm
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:
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:
this case the ERROR PAGE appears correctly
Why "?" doesn't allow the old address to be REWRITED to my ERROR PAGE correctly?
bye
gianpiero
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?
- 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?
Why "?" doesn't allow the old address to be REWRITED to my ERROR PAGE correctly?
bye
gianpiero