Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

site-wide redirect

Participant ,
Apr 04, 2008 Apr 04, 2008
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
368
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 04, 2008 Apr 04, 2008
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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 04, 2008 Apr 04, 2008
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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 04, 2008 Apr 04, 2008
LATEST
Thanks, I was hoping the CF Administrator had an option for this. I'll give this a try. Wendy
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources