We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Help With Rewrite Rule
Currently I have category links in a sidebar for my blog to enable viewing only posts for that category.
The code for the link is
<a href="?cat=<perch:category id="catSlug" />"><perch:category id="catTitle" /></a>
Which displays as /news/?cat=my_blog_category, I would rather it showed as /news/my_blog_category
So I tried changing this in htaccess:
RewriteRule ^news/([a-zA-Z0-9-/]+)$ /news/?cat=$1 [L]
and the link to:
<a href="<perch:category id="catSlug" />"><perch:category id="catTitle" /></a>
But it does not work, anyone know how to do this? I know the rewrite is working as I have clean urls for the posts.
Want to reply to this thread?Login with Perch