Jump to content

All links to site URLs including admin returning 404 (but not root URL)


2xbass
 Share

Recommended Posts

Hi there!

I'm a bit stumped by a ProcessWire site which has suddenly, apparently without any changes to the site or the environment, stopped working. What's happening is that although the root site is working, all links to other paths, including the admin URL, are all resulting in 404 errors. As far as I know, nothing has changed at all.

I'm an experienced PHP developer but know very little about ProcessWire. As far as I can see, the errors are coming from inside ProcessWire. There's nothing in the Apache or ProcessWire logs that I could see and I even enabled $config->debug in site/config.php. If I create an index.html in a directory that is a sibling of the site directory, it is served up fine by Apache.

Thanks for any pointers anyone can provide to help me debug this or get the the site working again.

Link to comment
Share on other sites

  • 2xbass changed the title to All links to site URLs including admin returning 404 (but not root URL)

The symptoms make it sound like your .htaccess file is somehow erroneous or Apache is not using/processing rules from it correctly. I would start debugging from there. You could, for an example, try to access one of the files that are normally protected by .htaccess rules, just to see if those rules are working as expected.

(Root URL working properly is a typical sign of this as well: PHP is working and requests for the index.php file are apparently being processed, but .htaccess rules are not passing requests for non-root paths to it.)

  • Like 1
Link to comment
Share on other sites

5 hours ago, 2xbass said:

I'm a bit stumped by a ProcessWire site which has suddenly, apparently without any changes to the site or the environment, stopped working.

Is it possible that your provider changed the network configuration?

It happened to me few months ago, provider migrated my server to another server rack and then I wasn't able to reach external URLs, a single file_get_contents() to a remote URL wasn't working anymore. Reason was: new network config used IPv6 but it wasn't available.

Dunno if your symptoms are compatible with this scenario, but something must have been modified. ?

Link to comment
Share on other sites

If teppo's suggestion doesnt work it might also help if you create a new vhost at the same provider and then upload and install a fresh copy of processwire there. During installation you'll get some system checks and they might have some helpful warnings that might be the same for your other system as well.

  • Like 1
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...