Wordpress Permission issue Ubuntu 16.04

Hello I recently Moved one of my existing site from the older hosting to the new Droplet at the Digital ocean. When I moved all the files yet I wasn’t able to see the output of the files. It always showcased error 500. So at the droplet I ran a command sudo chown -R www-data:www-data /var/www/html/<siteFolder> So my website homepage was live. When I move from any other page It shows Page Not Found

The requested URL /product/millennial-backpack-extended/ was not found on this server.

While I am able to login in my Wordpress admin backend everything is fine there. Also redo the permanant links as well. Still the issue persist. I am unable to access any page other than the homepage of the site.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

After resetting the permalinks settings the next thing I would check in this case is your Apache configuration file in /etc/apache2/sites-enabled/ Inside a <Directory /var/www/html/> section you will need to make sure that AllowOverride All is set instead of AllowOverride None. This setting allows apache to use directives placed in .htaccess files (the way WordPress does permalink rewrite settings).