WordPress.org

Ready to get started?Download WordPress

Forums

Redirecting complex URLs (5 posts)

  1. johnkirk
    Member
    Posted 6 years ago #

    I'm moving a website from a host with a proprietory cms system to a new webhost using wordpress. The domain name remains the same. The content is the same as the old site but, naturally, all the new page urls are different in wordpress.

    The old site was a mix of simple (pagename.php) and complex (page_title.php?name=Our+Service&id=1) URLs [don't ask why - long story!]

    I have set up search friendly urls in WP using permalinks and page url editing and I have used 301 redirects in .htaccess to redirect the simple url pages from the old site to their WP equivalents. All works great, no problems at all.

    The problem I have is in redirecting the old complex urls to the new WP equivalent pages.

    As an example I want to permanently redirect:

    http://www.cv-consultancy.co.uk/cv_services.php?name=Our+Service&id=1

    to

    http://www.cv-consultancy.co.uk/our-cv-services/

    Using 301 redirects in the format for simple urls just doesn't work for these complex ones.

    I've read up extensively on mod_rewrite but can find no examples of my particular requirement.

    Any help would be gratefully appreciated

    Thanks

    John

  2. johnkirk
    Member
    Posted 6 years ago #

    Hi guys

    Any ideas yet?

    No rush, just putting the question back on the table, they can get buried so fast!

    Thanks

    John

  3. iridiax
    Member
    Posted 6 years ago #

    Try a Google search for:

    301 redirect dynamic url

  4. whooami
    Member
    Posted 6 years ago #

    there are other forums that are better suited to this question..

    jdmorgan, a mod over at http://www.webmasterworld.com/apache/ is THE preeminent authority on all things mod_rewrite, in my opinion. You might want to post over there if you havent yet.

  5. johnkirk
    Member
    Posted 6 years ago #

    Thanks guys for a very quick response.

    Both suggestions take me to the same place, JD has an article on that very topic. webmasterworld.com now bookmarked. I'm off back there for a good read.

Topic Closed

This topic has been closed to new replies.

About this Topic