Ians Ramblings Ian's ramblings, daily, ish

27Feb/100

Permalinks without .htaccess

If you want to use Permalinks on wordpress blogs but want to use the Apache recommended method of virtual hosts and directory directives rather than .htaccess files the following may help.

Go to settings and permalinks change to the style you want click save, then open the .htaccess file copy it's contents, then edit your virtual host settings in your apache config file adding the directory of your blog and paste the contents of the htaccess file between the directory tags.

This is mainly useful if you are running a range of different sites on the one server and may want different permalink styles in each and perhaps within each directory.

   
5 visitors online now
5 guests, 0 members
Max visitors today: 5 at 12:56 am UTC
This month: 5 at 08-01-2010 12:56 am UTC
This year: 48 at 06-10-2010 05:19 am UTC
All time: 48 at 06-10-2010 05:19 am UTC