Sorry, this page doesn't exist. Please check the URL or go back a page. 404 Error. Page Not Found. on host gatter code example

Example 1: wordpress inner page not found error

NOTE : If you got this error after installing wordpress on a newly configured 
ubuntu server
----------------------------------
1. sudo a2enmod rewrite

2. Add AllowOverride All in virtual host

    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted


3. restart apache

Example 2: every post wp error 404

# BEGIN WordPress

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

# END WordPress

Tags:

Misc Example