404 Custom Error Page Joomla
Contents |
Joomla! Events Trademark & Licensing User Groups Volunteers Portal Support Forum Documentation Issue Tracker Resources Directory Joomla! Training Extend Extensions Directory Showcase Directory Languages Packages Certification Program Developers Developer Network Documentation Bug Squad Security Centre API Documentation JoomlaCode joomla 404 error on homepage Joomla! Framework What links hereRelated changesSpecial pagesPrintable versionPermanent linkPage information Recent changes Help Log
Error 404 Joomla Administrator
in Joomla! Documentation™ Download Joomla! Demo joomla.com Learn More About Joomla!BeginnersAdministratorsDevelopersJoomla! Get InvolvedJoomla! Code ContributorsJoomla User Groups Browse CMS Help ScreensOur
Joomla 1.5 404 Error
DocsOur GlossaryThe Joomla! FAQsTips and tricksRecent Changes Help Contribute to Joomla! DocsTranslate Joomla! DocsEditing HelpPlay in the SandboxJDOC's PoliciesDocumentation LicenseMore Help Search Actions PageDiscussionView sourceHistory Creating a Custom 404 Error Page Other languages: English•
Joomla 404 Error Article Not Found
español• français• Nederlands• русский This tutorial will show you how to create a custom 404 error page for use in your Joomla web-site. Contents 1 Four Steps to Creating a Custom 404 Error Page 2 Exclude your Custom 404 Error Page from Search Engines 3 Additional Steps Toward a Better Custom 404 Error Page 4 More Custom Error Page Information Four Steps to Creating a Custom 404 Error Page Create 404 page joomla 3 an Uncategorized '404' Article Create an 'uncategorized' article in Joomla! to serve as your 404 Page. Include some text such as Sorry, we could not find the page you were looking for... and if necessary, also any useful navigational links. For example, you may wish to add a link back to your site's home page. Create and copy a link to that new 404 Article. Create a menu item which links to the new 404 Article and 'apply' your changes. Then copy the URL information (index.php?optio...), set the menu item as 'unpublished' and close out of the menu editing page. You may want to paste the copied URL into Notepad or somewhere accessible for the time-being. Copy error.php to your Template's Directory In your Joomla! installation copy the file error.php from the templates/system directory, to your Template directory. For example, if I was using a template named 'Cleancloud' I would copy the error.php file to the templates/cleancloud directory. Modify error.php to Redirect 404 Errors to your 404 Article Edit the error.php file as follows, adding the code below immediately under the 'restricted access' line: If you are using Joomla 1.6, 1.7, 2.5, or 3.x please use this detection code: if (($this->error->getCode()) == '404') { header('Location:
Management Learn More WordPress Services WordPress Hosting Superior WordPress Performance Learn More WordPress Themes Best Free WordPress Designs Learn More WordPress Tutorial Step-by-step WordPress Guide Learn More More Links: WordPress Plugins About WordPress WordPress FAQ WordPress how to make custom 404 page Services Joomla Services Joomla Hosting Superior Joomla Performance Learn More Joomla Templates Best Free joomla 403 error Joomla Designs Learn More Joomla Tutorial Step-by-step Joomla Guide Learn More More Links: Joomla Extensions About Joomla Joomla FAQ Joomla Services Our joomla 500 error Technology Datacenters Data Centers Top Speed Solutions Speed Technology Total Uptime 99.99% Monthly Uptime 99.999% Yearly Uptime 99.996% Uptime Technology Our Support 24/7 Amazingly Fast Support Phone Reply Time: Instantly Contact Us Chat Reply Time: https://docs.joomla.org/Creating_a_Custom_404_Error_Page Instantly Start Chat Tickets First Reply: 10 Minutes Post Ticket Support Team Devotion 100% Advanced Expertise Always Ready To Help Our Support About Us See Our Faces Meet the SiteGround People! Learn More See Our Values Get to know our guiding principles! Learn More Read Our Blog Learn what's cooking! Learn More Read Client Reviews What our clients think of us. Learn More Affiliates Home / Joomla / General Joomla FAQ / https://www.siteground.com/kb/how_to_create_a_custom_404_page_not_found_page_in_joomla/ How to create a custom ‘404 page not found' page in Joomla How to create a custom ‘404 page not found' page in Joomla You can use the following instructions to create a custom 404 error page for your Joomla website: 1. Create new article - create new uncategorized article through your Joomla administrative area -> Article manager called 404. You can insert desired text inside it which will be displayed when such error message occurs. When you are ready Save the article. The article will be accessible through a link similar to the following one: http://www.yourdomain.com/index.php?option=com_content&view=article&id=XX where XX is the ID of the article. You can save this link because you will need it later. 2. Create new Menu Item - create new Menu Item through Joomla administrative area -> Menu manager called 404 Item (you can use desired name). From the New Menu Item page you have to link this item to the 404 article which you have already created. You can do that by choosing Single article from the Menu Item Type field and after that choosing the article 404 from the Select Article filed on the right side of the page. 3. Copy the default error.php file inside the folder of your current template - you need
ChecklistCustomizationUpgrading Joomla Topics JCE EditorCustom StylesheetsJoomla TopicsExtensionsSEO Basics Frequently Asked Questions & How to How can I create a custom 404 error page for my Joomla 3 web site? Custom 404 Error Pages If a person surfing the http://joom3.zemplate.com/faq/99-how-to-create-a-custom-404-error-page-for-my-joomla-3-web-site web enters your domain name followed by a non-existent page name into the address bar or clicks on a link with an out of date page name for your site, they will come to a 404 Error page. The default setup for Joomla 3 has an error.php page in the templates/system folder of your Joomla 3 installation. This page will appear 404 error whenever someone types in your domain name followed by a slash and a non-existent page. If you are using a third party template, they may already created a replacement error page that reflects the look of their template. Protostar has an error.php page in templates/protostar in your Joomla 3 installation. In some cases, your hosting company has an error page that overrides joomla 404 error your Joomla error page. If you are using Protostar as your template, you can restyle this error.php page itself. Another option is to use PHP redirects to send the visitor to a page that you have created for this purpose in Menu Manager for your Joomla 3 installation. Detecting bad URLs Joomla 3.+ keeps track of all the bad URLs that people have typed in or clicked on as links for your site. These bad URLs can be seen under Components -> Redirects. This way you can tell if there are bad links to your site out there that people continually click on. Landing on a 404 error page can be harmful to your site's SEO so you will want to create a redirect for that page that takes the user directly to a more appropriate page. Create Redirects for common bad URLs We suggest that you create Redirects for common bad URLs. If you have a URL on the list under Components -> Redirects that has multiple hits, then it is likely that an external site or search engine has a broken link