Redirect 500 error page to another page in joomla

I am using joomla 1.5, I have a page with 500. But I want to redirect this page to a new page, it is possible. I have given an example below.

Old page http://example.com/oldpag [500 eror page]

I want to redirect the above URL to a new work page

New page http://example.com/newpage

Please advise me ..

Regards, SurezRam

+4
source share
4 answers

go to the folder: yoursite / template / system / and change the error.php file, put the following redirection code after defined( '_JEXEC' ) or die( 'Restricted access' );

 header("location: http://example.com/newpage"); exit; 
+3
source

add the code below to the .htaccess file in the joomla installation root directory if you cannot find it.

 # CUSTOM ERROR PAGES ErrorDocument 400 URL/error/403.shtml ErrorDocument 401 URL/error/403.shtml ErrorDocument 403 URL/error/403.shtml ErrorDocument 404 URL/error/404.shtml ErrorDocument 500 URL/error/500.shtml # END CUSTOM ERROR PAGES 

where url is the url of the site. I appropriately placed the corresponding error files. for internal server error [500], it redirects the 500.shtml file inside the error folder. Shtml is nothing but an html file with a renamed extension.

+1
source

You can use this solution in joomla documentation. This can be used for any error code.

http://docs.joomla.org/Creating_a_Custom_404_Error_Page

For 1.6, I posted a fix here on this stackoverflow question:

How to create a custom error page (404) for Joomla 1.6?

This correction will also be necessary for the Qumaran solution.

+1
source

thanks for this share, we can also use joomla redirect to get more details you can get from here

http://webobserve.blogspot.com/2011/03/redirect-error-page-to-some-other-page_09.html

0
source

Source: https://habr.com/ru/post/1342759/


All Articles