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.

entry redirect

October 17, 2008 3:47am

Subscribe [4]
  • #1 / Oct 17, 2008 3:47am

    tobiaswright

    1 posts

    Hi,

    I need to redirect entries from one template to another.

    For example:
    http://www.thebudgetfashionista.com/main/what-to-buy-fall-2008-gap/

    to:
    http://www.thebudgetfashionista.com/archive/what-to-buy-fall-2008-gap/

    Is there an easy way to do this to entries without having to do 301 redirects for every entry?

    Thanks

  • #2 / Oct 17, 2008 2:04pm

    ak4mc

    429 posts

    There are wildcard expressions that can be used in .htaccess that seem as if should do it, but I’ve never been able to make it work that far down the URL. I’m not exactly fluent in that stuff anyway.

    The only thing I can think of as a short-term fix would be HTML redirects which will only keep the main group URLs “valid” as far as search engines are concerned. I don’t imagine you’d find that acceptable.

  • #3 / Oct 17, 2008 3:32pm

    Ingmar

    29245 posts

    They are called “regular expressions”, and while not exactly rocket science, they can be quite tricky at times. There are a large number of tutorials out there, dealing with such rewrite issues.

  • #4 / Oct 17, 2008 3:48pm

    Mark Bowen

    12637 posts

    If anyone’s interested in learning about Regex then a really really good site which takes you through nearly everything you will ever need to know is :

    http://www.regular-expressions.info

    Best wishes,

    Mark

  • #5 / Oct 18, 2008 9:45am

    BridgingUnit

    214 posts

    Try this in your .htaccess:

    # Permanent redirect, mapping pages in one directory to those in another
    Redirect 301 /main <a href="http://www.thebudgetfashionista.com/archive">http://www.thebudgetfashionista.com/archive</a>
  • #6 / Oct 18, 2008 11:23am

    tobiaswright

    1 posts

    Thanks,

    is there anyway to just do entries? Our main template group holds our primary index file and odds and ends of other files, so I’m hesitant to use such a broad solution.

    Thanks everyone for your suggestion up to this point

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

ExpressionEngine News!

#eecms, #events, #releases