• Hi all, I recently started having a strange error with wordpress. Every time I went to a page other than the homepage (on the frontend), it would throw a 404 not found error. I checked in the nginx logs, and apparently, it was looking for a directory, which wasn’t supposed to happen. I checked my vhost file, and that wasn’t the issue. Eventually, after a lot of investigation, I found out that removing the line “include /var/www/heartymakes/nginx.conf” solved the issue. I know that this is neccessary for W3 Total cache to work, and I’d like to have W3 Total, as it is one of the best free caching plugins out there. I want to know how I can change the nginx.conf generated by W3 so it works with NGINX

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p

    (@t-p)

    I went to you homepage, and clicked on each item (Home About Us Education FAQ Shop) in the main menu there, and they all open FINE — NO 404 ??

    By the way, the The page I need help with link you provided has http, however, when I visited your site it opens with https !

    Check support with the plug in developer.
    Deactivate this plugin and test.

    Thread Starter ajax21

    (@ajax21)

    As I said, I removed that line from the vhost file. Now try. It is broken

    Yes front page is not loading either.
    You have deleted the plugin and still the error.
    Look at the source code you made changes to.
    May have missed something.
    Or are you completely locked out of admin

    Thread Starter ajax21

    (@ajax21)

    Sorry about that, my server was down. It should be back up now

    Thread Starter ajax21

    (@ajax21)

    Nono, the issue isn’t fixed. I was responding to phpnuke’s answer saying that my homepage was down too. That was because my server was down. Now the server is back up, but the problem remains

    Hey ajax21, I tried to visit your site, but I couldn’t so I’m not sure if you’re still having the issue. If you are I might have a solution… I do however use apache2 so I’m not sure if this will work for you.

    In the apache.conf file I changed the None to all:

    <Directory /var/www/>
    	Options Indexes FollowSymLinks
    	AllowOverride all
    	Require all granted
    </Directory>

    As I said I’m not sure if there is an equivalent in the nginx.conf file, but since you mentioned including it was the problem, the problem might be in that file… I hope it helps you, and otherwise someone like me looking for a solution online for 10 hours and then giving in only to stumble upon the solution accidentaly.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘404 Error on all pages except homepage’ is closed to new replies.