SolutionCottage.com
Posted  15 Jul 2009 - 14:01:31

Category: Linux


Enable mod_rewrite friendly URLs in wordpress

Issue:
You want to enable permalinks to have nicely formatted urls instead of page_ids which is the standard option.

Solution:
First set the permalinks to another format in the wordpress dashboard interface under Settings - Permalinks.

Then enable mod_rewrite like this:

sudo a2enmod rewrite


Then enable .htaccess to override the default rules.

sudo gedit /etc/apache2/sites-available/default


Change the line AllowOverride none to AllowOverride All somewhere around row 12-13.

Restart apache by issuing the following command:

sudo /etc/init.d/apache2 restart



Marked as helpful by 3 users




0 comments:








© SolutionCottage 2008-2011 9/23/2017 11:50:19 AM