• Hello,

    I installed a fresh new WordPress onto my Ubuntu VPS. When updating the permalinks to %postname%, those posts result in 404 page not found. This has never happened to me before, so I’m not sure what is the cause. Various solutions online suggest memory limits or hosting issues, but none of those seem to be the issue. The site is brand new with about 10 or so posts. I’m wondering if it has to do with Ubuntu VPS, but can’t confirm. This is likely an .htaccess issue, but at the moment there is nothing on my .htaccess file.

    Please help!

    Cheers,
    Yoni

Viewing 2 replies - 1 through 2 (of 2 total)
  • I, too, use a Ubuntu VPS for my low traffic WordPress sites. There is a bunch of stuff I had to do to get .htaccess working properly. Permalinks other than the query type will not work in Linux without .htaccess.

    I’ll respond again when I dig up the documentation I wrote for myself when I last had to solve this problem.

    1. Permit .htaccess in each directory: <Directory /var/www/> in /etc/apache2/apache2.conf must have AllowOverride All
    2. Add .htaccess functionality to Apache: Linux Commands a2enmod rewrite and systemctl reload apache2.service
    3. Allow WordPress to modify .htaccess: chown -R www-data:www-data /var/www
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘404 Error When Updating Permalinks – Hosted on Ubuntu VPS’ is closed to new replies.