Re: Parse .cfm files



Chung Leong wrote:
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


True. You can use a rewrite to do a 301 redirect.

But not all rewrites are 301 redirects. A key point here.

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



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: 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: How to navigate to new URL without new instance of browser
    ... Simple redirects, which suffice for this case, can be done with the ... given that URL rewrite does not require any kind of script; ... although I do have root access to my server. ... configuration only after the tests have showed ...
    (comp.lang.javascript)
  • Re: Wild card symbol in name?
    ... program (Article Manager) where all pages had the "shtml" extension. ... mod_rewrite rule within your htaccess file to rewrite the URL. ...
    (alt.html)
  • Re: [PHP] File extension for PHPs serialization format?
    ... > trying to run a PHP script. ... You can rewrite the url using mod_rewrite or some such variant to handle ... otherwise do when it encounters a .php extension, ...
    (php.general)