Permalinks: Page Not Found

When I open the newly created page in WordPress I get page not found but when I reset the permalinks to none http://localhost/?page_id=6 opens normally .

Even with this permalink it works : /index.php/%postname%/ But when I change it to only /%postname%/ I get page not found error .

Here is my htaccess file:

# BEGIN WordPress

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /
   RewriteRule ^index\.php$ - [L]
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule . /index.php [L]

# END WordPress

Solutions Collecting From Web of "Permalinks: Page Not Found"

Do you have mod_rewrite enabled?

This sort of thing tends to happen when it’s not. At which point, you only have access to ugly permalinks (?p=N) or “almost pretty” permalinks (/index.php/slug). The latter uses pathinfo to get you the page you’re requesting instead.

So I’d suggest double checking whether mod_rewrite is installed and enabled. If it turns out it isn’t, enable it and restart Apache.

Here’s more on using permalinks from the WP codex.

This problem is .htaccess file’s. Before doing anything first take backup your files and database.

Then rename the .htaccess file in your root of WordPress installation. and then change the permalink setting you want in WordPress Dashboard.

I hope this will work for you.