WordPress.org

Support

Support » Plugins and Hacks » Assistance with redirection parameter variables

Assistance with redirection parameter variables

  • I am migrating my blog from Movable Type to WordPress. I have not been able to get my redirects working properly using this plugin. Here is the structure I have, and am moving to:

    Individual Posts
    Old MT: /archives/20110711-this_is_a_post.php
    New WP: /20110711/this-is-a-post

    Category Posts
    Old MT: /archives/cat_this_is_a_category.php
    New WP: /category/this-is-a-catgory

    I’ve read the docs and still can’t get this to work, so I thought I would solicit help here. Any feedback is greatly appreciated!

    http://wordpress.org/extend/plugins/redirection/

Viewing 4 replies - 1 through 4 (of 4 total)
  • tinpotgamer
    Member

    @tinpotgamer

    Do you have access to editing the pages on Movable?
    Why don’t you just move all your stuff over, then edit your index.html and 404 pages to have an auto-forward script such as the below?

    <html>
    <head></head>
    <title>Sitename.com</title>
    <body><script language="javascript">
    window.location="newsiteurl";
    </script>Redirect not supported in your browser? Click <a href=newsiteurl>here</a> to continue.</body>
    </html>

    Thanks for the suggestion, but the whole purpose of 301 redirects of individual pages is not to commit Google suicide. The Redirection plugin is designed just for what I am trying to accomplish but based on the documentation I can’t get the variables set correctly.

    So rather than just expecting a handout I am trying to teach myself regular expressions. What I have isn’t working, but so far this is what I have. I am hoping someone with a keen eye might be able to quickly point out my mistake:

    Individual
    MT: /archives/20110711-this_is_a_post.php
    	/archives/([0-9]*)/([-])(.*).php
    WP: /20110711/this-is-a-post
    	/([0-9])/(.*)
    
    Category
    MT: /archives/cat_this_is_a_category.php
    	/archives/cat_(w+).php
    WP: /category/this-is-a-catgory
    	/category/(w+)

    Still hoping for help. Corrected a few mistakes but still not sure how to replace underscores with dashes:

    Individual
    MT: /archives/20110711-this_is_a_post.php
    	/archives/(d*)-(w+)\.php
    WP: /20110711/this-is-a-post
    	/$1/$2
    
    Category
    MT: /archives/cat_this_is_a_category.php
    	/archives/cat_(w+).php
    WP: /category/this-is-a-catgory
    	/category/$1
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Assistance with redirection parameter variables’ is closed to new replies.