WordPress permalink are not working, except for default option. you are facing this problem means please follow this blog.

Its very simple steps to work the custom permalinks or post name permalinks.

you are install WordPress is first time on Ubuntu. Please do this following steps to enable the permalink in localhost.

This commands you may be use for Ubuntu 12.10 | 13.04 | 13.10 | 14.04

sudo vi /etc/apache2/sites-available/000-default.conf

edit this file add this line after the DocumentRoot /var/www  line:

AllowOverride All

after adding this line you should run this command

sudo a2enmod rewrite

set up the file /var/www/.htaccess  and run as

sudo chmod 664/var/www/.htaccess
sudo chown www-data:www-data /var/www/.htaccess

your .htaccess file is like this

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

after do this command you should restart your apache server

sudo service apache2 restart


I hope you this blog is helpful for you 🙂



One Reply to “WordPress Permalinks is not work on localhost Ubuntu 12.10 | 13.04 | 13.10 | 14.04”

Leave a Reply

Your email address will not be published. Required fields are marked *