cancel
Showing results for 
Search instead for 
Did you mean: 

Error 404 on all pages after installation!

SOLVED

Error 404 on all pages after installation!

Hi, after I finish installing Magento 2.2, only the home page works, all other pages give the error, including the admin page.

 

All pages appear the following message

 

Object not found!
A URL was not found on this server. If you entered the address (URL) manually, please double-check the address syntax.

If you are looking for a server problem, please contact the webmaster.

404 Error

 

I can not do anything, help me!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Error 404 on all pages after installation!

Hi @gabriel_sabatin 

 

Yes - this is issue is mainly related to .htaccess file !

 

In your magento 2 root directory - .htaccess file  is not there - so kindly create .htaccess file in the root directory of Magento 2 and put this content in it - https://github.com/magento/magento2/blob/2.3-develop/.htaccess

 

it will resolved your issue - hope it helps !

if issue solved,Click Kudos & Accept as Solution

View solution in original post

7 REPLIES 7

Re: Error 404 on all pages after installation!

Hi @gabriel_sabatin 

 

Yes - this is issue is mainly related to .htaccess file !

 

In your magento 2 root directory - .htaccess file  is not there - so kindly create .htaccess file in the root directory of Magento 2 and put this content in it - https://github.com/magento/magento2/blob/2.3-develop/.htaccess

 

it will resolved your issue - hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: Error 404 on all pages after installation!

I save the htaccess file in .txt or .php? or another extension?

Re: Error 404 on all pages after installation!

Actually file name is only .htaccess file

no extension - extension itself .htaccess

if you have still confusion just download the .htaccess file from the link i have posted and put the same in root directory of magento

Then check it will works !

Hope it helps !
if issue solved,Click Kudos & Accept as Solution

Re: Error 404 on all pages after installation!

The link you posted doesn't exist. Can you post the .htaccess contents within?

Re: Error 404 on all pages after installation!

Hi @Gidisat 

 

Here is the another link to download the default content of .htaccess file - https://github.com/magento-2/magento-2-community-sample-data/blob/master/.htaccess.sample 

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: Error 404 on all pages after installation!

hi i am getting the same error changed .htaccess but still having same issue. 

Re: Error 404 on all pages after installation!

ironic the link throws a 404 error