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.

301 Redirect Help

May 20, 2012 5:17pm

Subscribe [3]
  • #1 / May 20, 2012 5:17pm

    Hi all,

    Apologies if this is the wrong place to post but I’m working on launching a site today and I’m running into a few issues setting up my 301 redirects, and was hoping someone might have an idea of what’s going wrong.

    An example old URL is:

    http://www.marshallpierce.com/?page=Jewelry

    The new URL is:

    http://www.marshallpierce.com/index.php/marshallpierce/jewelry/

    Note: I’ll be removing the index.php from the URL structure, but just wanted to get these redirects working first.

    I’ve tried a number of different redirects and I’m either getting an Internal Server Error or no redirect takes place (in which case it just loads the homepage regardless of what comes after the ? in the url).

    Any insight is greatly appreciated.

  • #2 / May 20, 2012 6:16pm

    boldyellow

    89 posts

    Ignore if I’m covering familiar territory here, but a few random thoughts…  How did you write the redirects in your .htaccess file?  Is RewriteEngine on?  Is there anything else in the file that could be removed for testing?  What if you remove index.php now and test the redirects?

  • #3 / May 21, 2012 12:34am

    I came across this post about Redirects for Dynamic URLs and was able to get it working.

    http://www.seoverflow.com/seo/setting-up-301-redirects-for-dynamic-urls/

    I ended up using this:

    RewriteCond %{QUERY_STRING} ^page=Jewelry$
    RewriteRule ^$ <a href="http://www.marshallpierce.com/marshallpierce/jewelry/">http://www.marshallpierce.com/marshallpierce/jewelry/</a>? [R=301,L]
  • #4 / May 21, 2012 7:04pm

    Matt:P

    277 posts

    Hi Vince

    I’ve used this add-on for 301’s in the past, it worked without fail. http://devot-ee.com/add-ons/detour (I noticed that Detour Pro is now available)

    Hope it helps!
    Matt

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

ExpressionEngine News!

#eecms, #events, #releases