Error 404 all pages except home, also can′t access from the wp dashboard to edit
-
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]
- The topic ‘Error 404 all pages except home, also can′t access from the wp dashboard to edit’ is closed to new replies.