Jump to content

404 on site after transferring into a new folder


Pip
 Share

Recommended Posts

Hi guys, 

Background: 
I was developing a website. I had some blue screen issues due to a video card issue and decided to format. Prior to formatting, I backed up the SQL script, and files and proceeded. 

Today: 
I restored the database (same name). Copied the files into a new folder in the XAMPP htdocs. 

When I kick in the Apache and database, it says the site is 404. ?

Link to comment
Share on other sites

404 seems strange to me ? normally you would get a 500 if something is wrong with your PW installation. I would try if XAMPP and your setup is working properly by just creating a simple index.html file in your folder and open it in the browser.

Personally I've switched from XAMPP to Laragon, which is much more easier to setup.

  • Like 1
Link to comment
Share on other sites

40 minutes ago, DV-JF said:

404 seems strange to me ? normally you would get a 500 if something is wrong with your PW installation. I would try if XAMPP and your setup is working properly by just creating a simple index.html file in your folder and open it in the browser.

Personally I've switched from XAMPP to Laragon, which is much more easier to setup.

I didn't do installation today. I transferred the files. 

Link to comment
Share on other sites

Just a thought before we go further.

When is the 404 page displayed? On the index page (frontend) or only the admin page?

If it's the second case, the .htaccess file is probably missing or the admin page entered may not be the right one (this can be checked in the database, table pages, id 2, column name)

Otherwise, in the first case, check that you uploaded all the required processwire files (at least the index.php which will throw an error if the setup is ok, or as @DV-JF double or triple check your apache configuration on xampp.

 

  • Like 1
Link to comment
Share on other sites

27 minutes ago, flydev ?? said:

Just a thought before we go further.

When is the 404 page displayed? On the index page (frontend) or only the admin page?

If it's the second case, the .htaccess file is probably missing or the admin page entered may not be the right one (this can be checked in the database, table pages, id 2, column name)

Otherwise, in the first case, check that you uploaded all the required processwire files (at least the index.php which will throw an error if the setup is ok, or as @DV-JF double or triple check your apache configuration on xampp.

 

Thanks for the input. 

It occurs when I go to the website http://localhost/folder/

It's the parent for both the admin and site. 

Link to comment
Share on other sites

7 hours ago, Pip said:

It occurs when I go to the website http://localhost/folder/

This behaviour indicates that something is wrong with the .htaccess file in the root folder.

Please check if the file is present in the root folder of the site, if not, you can get a copy here: https://github.com/processwire/processwire/blob/master/htaccess.txt - download this file and then rename it to .htaccess.

  • Like 1
Link to comment
Share on other sites

42 minutes ago, DV-JF said:

This behaviour indicates that something is wrong with the .htaccess file in the root folder.

Please check if the file is present in the root folder of the site, if not, you can get a copy here: https://github.com/processwire/processwire/blob/master/htaccess.txt - download this file and then rename it to .htaccess.

Ty will check it out. I copied the previous htaccess. Dunno really what's up with this. Sigh. 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...