301 Redirects Appends ?p=original/url/path - how can I remove? Whether I'm using the Reroute plugin or plugging it in .htaccess, changing the path elsewhere appends the query in the end. How can I remove?

Redirect 301 /blog/category /blog/archive


Is the line I have in my .htaccess

So if I go to:

http://domain.com/blog/category/category-name

it takes me to:

http://domain.com/blog/archive/category-name?p=blog/category/category-name

What's going on here?
The issue here is that your Redirect directive is conflicting with Craft’s index.php-hiding RewriteRule directive. (Redirect is a mod_alias directive and RewriteRule is a mod_rewrite directive. They’re two separate modules that can be used for the same thing, but lead to unexpected consequences when used together.)

To fix this, use a RewriteRule directive for your own custom redirects as well, rather than Redirect.

RewriteRule ^blog/category(/.*)?$ /blog/archive$1 [R=301,L]


Make sure that you place that before Craft’s redirect.