Posts Not Found On Server !

  • Posted November 3, 2014

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 !


When I change my Permalink structure to Default then posts appear but something is different means homepage appears not as usual & posts also . The website appears not as usual like The sidebar appears on top , the header image appears twice ,the website UI is looking basic HTML page type !

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

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.

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.

I had this problem not too long ago when I transplanted my WordPress installation. I wrote about how to solve the problem on the WordPress StackExchange network.

Please let me know if that solves your problem.