• After the migration of my website to the google cloud compute engine host I got error 404 on all pages except home, even on one I created after the migration directly on compute engine wordpress, I already updated the permalinks, tried to change permissions on .htaccess file from Filezilla to 666 and got this error: set attributes for /var/www/html/.htaccess: permission denied, then from SSH tried the next codes on SSH:

    ls -la /var/www

    sudo chmod 777 /var/www/html -R

    sudo chgrp -R www-data /var/www/html sudo gpasswd -a username www-data sudo chmod -R 777 /var/www/html

    Kept getting the same error, but now the .htaccess file is missing for some reason, wpcontent and the other ones inside html too, but the page is still online

    Tried to upload .htaccess file to filezilla (I got a backup on my laptop) but I get Error: /var/www/html/.htaccess: open for write: permission denied and failed file transfer

    What should I do??

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

Viewing 1 replies (of 1 total)
  • After the migration of my website to the google cloud compute engine host I got error 404 on all pages except home, even on one I created after the migration directly on compute engine wordpress, I already updated the permalinks…

    Kindly check and confirm if the Apache mmod_rewrite module is installed and enabled. Without this, the rewrite rules in your htaccess file do nothing and permalinks will not work.

    If you’re running PHP as an Apache module, you can check this by creating a phpinfo() file, open it in the browser, and search for “mod_rewrite”. If it is enabled, you should see it under “Loaded Modules”. If you’re running PHP any other way, google for the specific instructions.

Viewing 1 replies (of 1 total)
  • The topic ‘Error 404 all pages except home, also can′t access from the wp dashboard to edit’ is closed to new replies.