And So I had an problem where my pagination would append a ?p=1 towards the finish of the URL when moving from page 2 to the first page. Using the problem remedied so individuals links no more get offered, I do need to try to try to perform a 301 redirect from individuals Web addresses towards the proper URL to ensure that the search engines like google can update individuals links.

I'm with an Apache server, and I must have the ability to use RedirectMatch 301 to get this done, however I don't believe that it plays well with query strings.

RedirectMatch 301 (.*)?p=1 http://mydomain.com/$1 

doesn't have the desired effect

In my opinion the answer will finish up since I personally use RedirectCond and Rewrite claims to make this happen, however I don't understand how to get this redirect.

Can someone assist me with this particular? Things I have to date provides me with Internal Server Errors so clearly I'm not on course yet.

RewriteCond %{REQUEST_URI} (.*)$
RewriteCond %{QUERY_STRING} ^?p=1$
RewriteRule ^.*$ http://devserver/$1 [L,R=301]

If a person may even point me toward a great tutorial regarding how to set this up could be useful too.

Thanks

Josh Pennington

RewriteCond %{QUERY_STRING} (^|&)p=1(&|$)
RewriteRule . http://devserver%{REQUEST_URI}? [L,R=301]