Custom 404 page in Magento - magento

I know you can create and customize 404 pages directly within the Magento backend. However, I am wanting to completely use my own 404 customized page and was wondering how to do this.
I have created a 404.html file and added it in the root of my magento installation. However, I don't see in the .htaccess file how magento currently is redirecting the 404 to the CMS 404 page. How can I have it redirect to my custom 404 html file instead without causing some sort of never ending redirect loop?
Thanks!

404 page set from backend
System>Configuration>General>Web>Default Pages > YOU CAN FIND CMS No Route Page which will be default Magento CMS PAGE 404
for custom 404 page you have to create new cms page and you have to call your CUSTOM.phtml file in your new cms page after then go to the
System>Configuration>General>Web>Default Pages >CMS No Route Page > you can see your cms page and set your page as 404 page

I know it is quite an old question, but I've found the answer in this tutorial: http://alanstorm.com/magentos_many_404_pages
It explain very well how to make really custom 404 error page.

Related

Magento 1: Ajax URL returns 404 in a custom module when moved site to another server

I'M bit new to Magento development.
I just moved website to another server and the ajax call start return 404.
Could you please help me how to debug or resolve this issue ?
Orignal site (working fine)
Click on any product here in shop now section
Website URL: https://mastermindcrate.com/
Ajax URL is : https://mastermindcrate.com/waytwoexpert/index/getProductDetail
Moved Site (Error exist here)
I moved site to : http://yasirjamal.com/demo/mastermind-new/
Ajax URL is: http://yasirjamal.com/demo/mastermind-new/waytwoexpert/index/getProductDetail
When i click on any product shop now section here it returns 404 see screenshot here:
You have to remove index.php from secure frontend url otherwise you have to use index.php in your url to access specific route
For eg.
http://yasirjamal.com/demo/mastermind-new/index.php/waytwoexpert/index/getProductDetail

URL page not found error

I have a webshop with magento wherein :
abc.com/staff is giving page not found error
abc.com/staff/ is loading the page correctly.
There is a difference of "/" in both the URLS. I have other CMS pages in magento such as contact-us which are working perfectly fine. Need assistance in this scenario about what is going wrong.
You have entered page url while creating that cms page as staff/ so replace this page url to staff.
Maybe you have a specific rule for url staff anywhere (ie: in .htaccess file) or a directory staff in Magento root folder or an older rewrite rule in database.

What's the best approach to have a custom 404 page with October CMS with Laravel 5

I'm working on a project based on the October CMS, with Laravel 5.0.35.
I'm trying to override the 404 page.
The current 404 page is located here:
modules\cms\views\404.php
... and is served by:
modules\cms\classes\Controller.php
As you can see, both the controller and the view are inside modules. This folder is a dependency folder and its content should not be altered. The best approach I see here is to use an override.
You can see the October CMS structure here:
https://github.com/octobercms/october
Do you have any ideas or suggestions on how to achieve this?
Thanks.
'If the theme contains a page with the URL /404 it is displayed when the system can't find a requested page.'
http://octobercms.com/docs/cms/pages#404-page
Essentially just create a page withe the URL /404 and it will use this by default. The same can be done for an error (500) page, just use /error.

Translate 404 page in Magento

I've translated a whole webshop for a customer. The only page I still need to translate is the '404 not found' page. But I can't find it anywhere on my server.
Does someone know where the 404 page is located.
I'm talking about .csv files here.
For Magento 2:
The 404-page is located in Content > Pages, with title 404 Not Found.
Picture of Magento 2-menu
Within the Stores > Configuration > Web, you set which page to load when encountering a 404-error. The default is the "404 Not Found".
Picture of Magento 2-settings for selecting 404-page
To translate, there are then two options, 1) Edit existing 404-page. 2) Create a new page and select it as the default 404-page in the Store configuration. In these settings, make sure to select the appropriate store scope.
For Magento 1:
Process is similar, "404 Not Found" page can be found in (menu) CMS > Pages. The settings to select which page that gets delivered as the 404-page is in (menu) System > Configuration > Web, and search for "CMS No Route Page".
To get 404 page in magento
You have to create 404 page with url key as no-route on magento backend.
You can create custom html contents/designs for 404 page on the editor itself.

Joomla login redirecting to 404 page?

I am currently working with Joomla 2.5, joomdle and moodle.
My Joomla site is redirecting me to 404 page when I login but only on the home page every other page will allow me to log in, the url from the homepage login is http://www.mywebsite.com//index.php?Itemid=223
When you take away one of the forward slashes before the index the link works.
(http://www.mywebsite.com/index.php?Itemid=223)
How do I fix this problem??

Resources