I know it is not strictly a zenphoto-issue, but I htought maybe someone here has had solved it already.
I am trying to achieve a 301-redirect of a page to a news category through htacess. The page is called "foo", the news-category is called "bar", so /pages/foo should redirect to /news/category/bar
So far I use
Redirect 301 /pages/foo
http://www.mysite.de/news/category/barThe problem is, that it somehow adds the non-beautified url-paramaeters to the end, so when I click on the menu item "foo" I get redirected to
mysite.de/news/category/bar?p=pages&title=foo
Does anyone know how I can prevent the rule from adding "?p=..."?
Thanks a lot and Happy Christmas
Comments
Try this : `RewriteRule ^pages/foo news/category/foo [L,R=301]`
(Of course with the proper names instead foo). This is what we still have to redirect some older links when our site used Wordpress.
RewriteRule ^pages/foo news/category/bar [L,R=301]
right after the opening
RewriteEngine On
RewriteBase /
I also tried with non-rewritten urls but that did not work.
I love Zenphoto!