Re: Parse .cfm files




Jerry Stuckle wrote:
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.

The easiest way to perform the redirection is with a rewrite rule, with
the R=301 flag.

See http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewriterule

.



Relevant Pages

  • 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 a redirect will allow the search engines to pick up the change without affecting current page rank. ...
    (comp.lang.php)
  • Re: Post with redirect?
    ... I am using an online merchant provider and I must post certain ... their basket to decide which page I redirect them too. ... and it can't be done with PHP. ... that's just another helpful 'golden nugget' from jerry stuckle. ...
    (comp.lang.php)
  • Re: Post with redirect?
    ... I am using an online merchant provider and I must post certain ... their basket to decide which page I redirect them too. ... The browser needs to process ... that's just another helpful 'golden nugget' from jerry stuckle. ...
    (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: Post with redirect?
    ... I am using an online merchant provider and I must post certain ... their basket to decide which page I redirect them too. ... and it can't be done with PHP. ... that's just another helpful 'golden nugget' from jerry stuckle. ...
    (comp.lang.php)