Should I 301 redirect URL's with variables?

Posted on 2009-12-18
Last Modified: 2012-05-08
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?
Question by:chriscounter07

    Author Comment

    Not that i've had the opportunity or knowhow to look I could use modrewrite for variables if needed
    LVL 5

    Expert Comment

    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.
    LVL 16

    Expert Comment

    by:Geoff Kenyon
    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.
    LVL 31

    Accepted Solution

    I think all you need on the .ru site is

    Redirect 301 /mycatalog

    That will replace with for any URL accessed.

    LVL 31

    Expert Comment

    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.

    Author Comment

    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

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    [Part 2 of a 6 part series called SEO Basics: 5 SEO Secrets for Creating Content that Drives Traffic (…
    Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
    This video teaches users how to migrate an existing Wordpress website to a new domain.
    The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now