Monthly Archives: October 2013

Adding a redirection on an URL containing GET variables

On a normal URL you would just do RewriteEngine on RewriteBase / RewriteRule ^old/url.html$ new/filename [R=301,L] When you come to URL with GET variables, it doesn’t work directly. You need to catch the query string separately from the normal URL. … Continue reading

Posted in IT stuff | Tagged , | 1 Comment

Show a custom template for a single post in a particular category

Add this filter to your functions.php and name your template file to match the category slug: single-[cat slug].php. If you’re using a child theme, replace TEMPLATEPATH with STYLESHEETPATH : //Gets post cat slug and looks for single-[cat slug].php and applies … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment