Hello everybody,
I have turned an old website of mine into a cmsms driven site.
Went fine so far.
I would like the old ( no longer existing links) to be handled by an error page.
My old links looked like this:
http://mysite.de/index.php?show=termine.
The new ones look like:
http://mysite.de/index.php?seite=termine.
After setting up the error page I would now expect that calls to the old sites would end at my error page. But they don't. Instead the default homepage is shown.
What am I doing wrong?
PS.: I don't/can't use pretty URLs. I use the latest version of cmsms ( 1.9.4.2).
Thanks for answers.
[solved]Custum Error Page... how does it work?
[solved]Custum Error Page... how does it work?
Last edited by Mieszko on Thu Jun 02, 2011 5:20 am, edited 1 time in total.
Re: Custum Error Page... how does it work?
You can add a new page and set the Content Type from "Content" to "Error Page"
http://forum.cmsmadesimple.org/viewtopi ... =8&t=54488
http://forum.cmsmadesimple.org/viewtopi ... =8&t=54488
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Custum Error Page... how does it work?
Keep in mind... there is a special configuration variable that CMSMS looks at: query_var that indicates what 'page' within CMSMS should be displayed. That variable is 'query_var' and by default the value is 'page'.
That means that you can access:
http://mysite.com/ or http://mysite.com/index.php <-- CMSMS will lookup and display the page that is marked as 'default'.
http://mysite.com/index.php?page=somepage <-- CMSMS will look for a page with alias 'somepage' and if it exists, display it. If it does not, it will generate a 404 error.
http://mysite.com/index.php?foo=bar <-- CMSMS will lookup and display the page that is marked as 'default', the foo=bar argument will be ignored by CMSMS, but maybe your content traps it.
http://mysite.com/index.php?page=somepage&foo=bar <--- <-- CMSMS will look for a page with alias 'somepage' and if it exists, display it. If it does not, it will generate a 404 error. CMSMS will ignore the foo=bar argument, but maybe your content, templates or page logic do something special with the foo argument.
That means that you can access:
http://mysite.com/ or http://mysite.com/index.php <-- CMSMS will lookup and display the page that is marked as 'default'.
http://mysite.com/index.php?page=somepage <-- CMSMS will look for a page with alias 'somepage' and if it exists, display it. If it does not, it will generate a 404 error.
http://mysite.com/index.php?foo=bar <-- CMSMS will lookup and display the page that is marked as 'default', the foo=bar argument will be ignored by CMSMS, but maybe your content traps it.
http://mysite.com/index.php?page=somepage&foo=bar <--- <-- CMSMS will look for a page with alias 'somepage' and if it exists, display it. If it does not, it will generate a 404 error. CMSMS will ignore the foo=bar argument, but maybe your content, templates or page logic do something special with the foo argument.
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.
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.
Re: Custum Error Page... how does it work?
Thanks for clarifying. So what I observe is the expected behaviour.
Additionally I won't be able to use the MovedPages module then.
Thanks again
Additionally I won't be able to use the MovedPages module then.
Thanks again