Should I 301 redirect URL's with variables?

I am quickly approaching a task that will need doing at some point.  I will be redirecting users accessing all content from one website to another domain altogether and with a slightly different URL structure.  To be brief, here's the difference:

old url

new url

Now my question is what happens when I have a variable URL like this?


where page=2 is the second page (and not indexed by google) and sort_by=price is just that (again not indexed).  
Using canonical linking I have google only indexing the main page - please note I may haven't got the specifics right but that's not important for this Q.

Should I write the variables in htaccess?  I estimate each URL to have perhaps 4 possibilities in filtering the content plus how ever many pages it has.  If each page has 4 possibilities then that is a lot of redirecting!!

Do I really need to do this in your expert opinions?
Who is Participating?
gwkgConnect With a Mentor Commented:
I think all you need on the .ru site is

Redirect 301 /mycatalog

That will replace with for any URL accessed.

chriscounter07Author Commented:
Not that i've had the opportunity or knowhow to look I could use modrewrite for variables if needed
Yes this is a common problem. The following page has a nice summary of this issue and solutions to it :

Let me know if you have any questions left after reading that page.
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Geoff KenyonCommented:
Even though you are using the canonical link tag, you are still going to want to do redirects.  The reason for this is link juice.  if there is any link value associated with a page, you really want to do a 301 to pass most of the value associated with the URL.

When you do this I would also change the canonical link tag to point to the new page on the new domain.
Whichever way you choose to do it, I definitely would not worry about redirecting sorting variables in the URL, nor would I worry about redirecting pages that are not indexed.
chriscounter07Author Commented:
I've done this:

Redirect 301 /mycatalog

But I might now look at dhwake's comment as it just seems to work TOO well right now.  Google isn't currently indexing any of my variables e.g. sort_by=price though
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.