Re: Parse .cfm files



Chung Leong wrote:
Jerry Stuckle wrote:

Chung Leong wrote:

Jerry Stuckle wrote:


But .cfm is a Cold Fusion template file. Why would you have php code in it?

You'll be much better off in the long run if you change the extension to
something standard like .php. Or just get yourself a virtual private
server where you can do anything you want.


My guess is that the OP needs to preserve the URLs in existing links.
This is probably better handled through Apache rewrite than changing
the file extension of the source files.


A 301 redirect takes care of things quite nicely - and permanently.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================


One would use rewrite to do that, naturally.


You can use a rewrite. But a redirect will allow the search engines to pick up the change without affecting current page rank. So eventually you can get rid of your redirects.

If you just do a rewrite no one will know it's actually changed.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: Parse .cfm files
    ... Jerry Stuckle wrote: ... You'll be much better off in the long run if you change the extension to ... A 301 redirect takes care of things quite nicely - and permanently. ... One would use rewrite to do that, ...
    (comp.lang.php)
  • Re: Parse .cfm files
    ... You'll be much better off in the long run if you change the extension to ... JDS Computer Training Corp. ... One would use rewrite to do that, ... But not all rewrites are 301 redirects. ...
    (comp.lang.php)
  • Re: .htaccess style rewrite with php
    ... Now that I think of it, you can also rewrite ... files, or pdf files, or .doc files, etc. as that file type. ... do it is redirect to that file, which is not what I want. ... Perhaps what you want to do is read in the file from a protected location and print the header and then the file. ...
    (comp.lang.php)
  • Re: Mod rewrite
    ... of redirects into .htaccess, but now I would like to... ... I'm starting a *massive* rewrite of one of my websites, ... if "http://website.com/file.htm"; doesn't exist, redirect to ...
    (uk.net.web.authoring)
  • Re: IHttpModule and User.IsInRole
    ... redirect based on what role a user is in. ... Is that still and acceptable event in which to perfrom the rewrite? ...
    (microsoft.public.dotnet.framework.aspnet)