Menu

WordPress Custom Permalink Not Working In Localhost

WordPress Custom Permalink Not Working In Localhost

In this tutorial i will let you why Wordpress Custom Permalink Not Working In Localhost and solution for this. Recently i am working in localhost and when he try to change the permalink structure to a custom permalink or to any other permalink and unfortunately all his site pages goes to 404 error page not found and he could only access the default permalink structure which is e.g. http://localhost/?p=1.

Reason:

The reason why custom permalink not working on localhost is because Apache module mod_rewrite and AllowOverridedirective are both disable by default and if you change permalink structure, WordPress use .htaccess files and in order for .htaccess to work properly you need to enable Apache module and AllowOverride directive that is usually set to none.

Solution1:

1. In the notification Tray click on WordPress icon.

2. Select Apache –> Apache Modules –> and that will display the lists of available modules now just check rewrite_module