Skip to main content
Inspiring
Apr 4, 2008 1:34 PM UTC
Question

site-wide redirect

Hi,

Is there a way to do a site-wide redirect or something in the administrator that will do this? We've created a new website and want to redirect all the old web pages over to the new site (without having to add a meta-refresh to thousands of pages in a single day). I haven't found anything in the administrator that will do this. Everything resides on the same server ex http://example.com/oldsite/index.cfm to http://example.com/newsite/index.cfm

We do have some application.cfm and application.cfc files that I thought we could add the meta -refresh tag to but that barely takes care of 30% of the pages.

Any ideas?
Thanks, Wendy
    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    wam4Author
    Inspiring
    Apr 4, 2008 7:31 PM UTC
    Thanks, I was hoping the CF Administrator had an option for this. I'll give this a try. Wendy
    Translate
    Participating Frequently
    Apr 4, 2008 1:55 PM UTC
    it's really easy to do this using either ISAPI_Rewrite on IIS or mod_rewrite on Apache. You'd write a rule something like;

    RewriteRule /oldsite/~(.*) /newsite/$1

    and all you inbound requests to the old site will be match to the rule and sent to the new site....1 rule, 1 place...simple.
    Translate
    Inspiring
    Apr 4, 2008 1:53 PM UTC
    wam4 wrote:
    >
    > Any ideas?
    > Thanks, Wendy
    >

    If you want it to be server wide rather then page by page, look at your
    web server.

    When we did this last year, we put re-direct directives into our Apache
    configuration file. I am sure there is an IIS equivalent if that is
    your server of choice.

    Translate