ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Detour - Simple URL Redirect for EE2 (does 301 and 302 redirects)

October 23, 2010 1:50am

Subscribe [10]
  • #1 / Oct 23, 2010 1:50am

    cityzen

    83 posts

    Hey there -

    I’ve just completed a EE2 addon that is a simple redirect manager for EE2.  You can use it to either redirect non existent URLs to another location or you can use it in a migration situation where you need to run 301s or 302s to update URLs but don’t want to mess with htaccess.

    All of the redirects are saved in a database table and appear within the Extension Settings.

    Any feedback and/or comments are welcome.

    Enjoy

    View Download Page and Instructions

    [Mod Edit: Moved to the Community News forum]

  • #2 / Oct 23, 2010 11:52am

    Rob Sanchez

    335 posts

    Looks really good. Been wanting something like this for a while.

  • #3 / Oct 25, 2010 2:16am

    5BYFIVE Creative

    159 posts

    Please pardon my redirect noob question…

    I’m restructuring my site a little and would like to change the name of the template group that has my blog templates in it from “site” to “blog”. If I go through all the templates and change urls where necessary, and I use this plugin, can I redirect the old urls to the new urls with the new template group name in them?


    Like this…
    blah.com/site/blah—> blah.com/blog/blah

    Thanks!

  • #4 / Oct 25, 2010 3:53am

    cityzen

    83 posts

    Absolutely Mike -

    For the old URI you would put site/blah and the detour the full URL http://www.yoursite.com/blog/blah and choose 301, which is a permanent redirect.  That way google will know that your old URL has changed and all users will be directed to the new page.

    Hope that helps!

    Mike

  • #5 / Nov 08, 2010 2:22pm

    computrav

    1 posts

    Hi,

    I’m not sure if I’m missing some step in the setup process, but the redirects are not working. I can see the extension and can add redirects in the CP fine, and they are being stored in the database without any issues.

    For example, I put in:

    test123           http://www.yahoo.com      301

    Then I navigate to:
    http://www.mysite.com/test123

    But upon doing that, I get a 404 not found.

    Am I missing a required step to “publish” or “activate” the redirects?

    Thanks,
      Travis

  • #6 / Nov 19, 2010 12:18pm

    deaconweb

    5 posts

    I also can’t get this to work.  I’ve installed it and can add or delete redirects, but they are not working.

    Any ideas?

  • #7 / May 10, 2011 3:51pm

    gabetax

    1 posts

    To anyone getting 404 pages instead of the redirect, this plugin is not compatible if you use an ErrorDocument directive from .htaccess.  When the extension does get hooked into, it’s for rendering the 404 page, not the original URL.  Your two options are:

    1) Make sure all URLs get passed into ExpressionEngine’s index.php.  Considering using an exclude list instead of an include list
    2) Manually patch the plugin source to use $_SERVER[‘REQUEST_URI’] instead of EE’s uri object.

    Details: https://github.com/cityzen/Detour/issues/3

  • #8 / Jun 03, 2011 9:33am

    gwarek

    23 posts

    Can this also be used to redirect an URL with an ID in it?

    E.g.
    http://www.mysite.com/articles/display.php?id=1000
    http://www.mysite.com/articles/view/1000

  • #9 / Jun 22, 2011 11:08am

    jdmcculley

    14 posts

    This seems like an excellent way to deal with redirects and stay out of the cumbersome htaccess file. Look forward to trying this out.

  • #10 / Jun 28, 2011 6:27pm

    EmilyLimeRed

    44 posts

    is it possible to use this if the old site was on a different server?  I’m having a hard time wrapping my head around trying to create a 301 redirect from an old site hosted on a private server to a new ee site hosted on dreamhost.  will this work at all?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases