Posts Not Found On Server !

I have Ubuntu 14.04 with LAMP stack installed , I also installed Wordpress & I have created many posts on Wordpress but when I view them it shows not found error. My permalink is set to postname & I have also added Wordpress access rules on .htaccess file ! For example I create sample post with permalink then I get this error :

Not Found

The requested URL /sample-post was not found on this server.

Apache/2.4.7 (Ubuntu) Server at Port 80

I am getting this error for all posts ! My site is showing posts when I go to but when I open any post I get error . Please help me !

Show comments

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.

I had the same issue where posts would redirect to a Not Found Apache error. This worked for me: 1. Add .htaccess permission to your Apache config file. Log in as the root user or add writting permissions for the /etc/apache2/apache2.config directory for your current user.

Edit /etc/apache2/apache2.config and add the following tothe bottom of the file.

<Directory /var/www/html>
    AllowOverride All

# Other folders with Wordpress installs: (if any)
<Directory /var/html/beta>
    AllowOverride All

Reset your server by running service apache2 restart.

2. Permalinks update Log in into your wp-admin panel and navigate to settings > permalinks. There press Save Changes.

port 80 error not found on my site…plz help me solution for my problem…

my website not redirect for another page plz give me the solution

Hello, you have to enable Apache Mod Rewrite. Run these 2 commands via SSH:

a2enmod rewrite
service apache2 restart

Hope it can help.