404 not found , the requested URL <<url name>> not found on this server in wordpress 404 not found , the requested URL <<url name>> not found on this server in wordpress wordpress wordpress

404 not found , the requested URL <<url name>> not found on this server in wordpress


If it is a fresh install of web server it is possible that .htaccess rules are not allowed by default. To fix that, edit you httpd.conf (usually it is in /etc/apache2), find

<Directory "path/to/your/document/root">        # ....     AllowOverride None    # ....</Directory>

and change

AllowOverride None

to

AllowOverride All

Then restart your web server and try again.


Reset your desired permalink from wordpress admin area and add this code in htaccess:

# BEGIN WordPress<IfModule mod_rewrite.c>ErrorDocument 404 /index.php?error=404RewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule>

Now, check with blog posts and pages.

Thanks,


You can go to preferences -> services & ports and you need to check enabled ssl for Apache

It's working for me