If you're using apache, look into the Rewrite module, you can just rewrite
all the old pages to go to the new ones.  For example:

RewriteCond     %{REQUEST_URI} ^/oldpage.html$   [NC]
RewriteRule ^/.*$               /index.cfm?page=oldpage [R=301]

You can also use regular expressions and rewrite your url's in a more
generic way, but it will probably be easier to do 10 of these if you only
have 10 pages. 

Russ
> -----Original Message-----
> From: srinivas ganta [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 08, 2006 6:07 AM
> To: CF-Talk
> Subject: Re: Site-wide redirect?
> 
> Hi Andy
> 
> You can add  error tag in the Application cfm ,and include the code that
> if
> error is "missing template" ,you can redirect the page to index.cfm
> 
> Srinivas
> 
> 
> On 3/7/06, Andy Matthews <[EMAIL PROTECTED]> wrote:
> >
> > I recently redesigned my personal website, moving from 10 or so
> individual
> > files, to a single main template. Those files have been deleted as I
> don't
> > like clutter in my directories.
> >
> > Problem is that now, search engines are still looking for those files.
> I'm
> > wondering if it's somehow possible, using CF, to code a sitewide
> redirect
> > back to index.cfm from any missing page.
> >
> > Anyone?
> >
> > <!----------------//------
> > andy matthews
> > web developer
> > ICGLink, Inc.
> > [EMAIL PROTECTED]
> > 615.370.1530 x737
> > --------------//--------->
> >
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234640
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to