Hi Folks
I have a basic .html site that I have converted to a coldfusion site.
since there are many old .html links out there I added the following to my
notFound.cfm file:
cfif notFoundUrl contains .html
cfset newUrl=http://www.mydomain.com;
replace(notFoundUrl,.html,.cfm)
It's no mystery, that's the correct response. Trap the 404 error for html
files at the web server and handle the cf side through either site wide or
per application error handling.
On Feb 2, 2014 11:42 AM, Rob Voyle robvo...@voyle.com wrote:
Hi Folks
I have a basic .html site that I have
And that's not what you're asking at all
On Feb 2, 2014 11:42 AM, Rob Voyle robvo...@voyle.com wrote:
Hi Folks
I have a basic .html site that I have converted to a coldfusion site.
since there are many old .html links out there I added the following to my
notFound.cfm file:
cfif
What's the error message?
On Feb 2, 2014 11:42 AM, Rob Voyle robvo...@voyle.com wrote:
Hi Folks
I have a basic .html site that I have converted to a coldfusion site.
since there are many old .html links out there I added the following to my
notFound.cfm file:
cfif notFoundUrl contains
Hi Timothy
Instead of redirecting to: mydomain.com
cflocation url=http://www.mydomain.com;
It is throwing an error rather than redirecting.
How do I redirect?
Rob
On 2 Feb 2014 at 11:56, Timothy Heald wrote:
It's no mystery, that's the correct response. Trap the 404 error
for html
What's the error?
On Feb 2, 2014 12:09 PM, Rob Voyle robvo...@voyle.com wrote:
Hi Timothy
Instead of redirecting to: mydomain.com
cflocation url=http://www.mydomain.com;
It is throwing an error rather than redirecting.
How do I redirect?
Rob
On 2 Feb 2014 at 11:56, Timothy Heald
you firstly are trying to use fileExists on a URL, so it will always fail,
fileExists requires an absolute path on the server
see here: https://learn.adobe.com/wiki/display/coldfusionen/fileexists
secondly an html page will never reach coldfusion, because it is an html
page, so cfml code will
Add the file. Like index.cfm our what ever
On Feb 2, 2014 12:09 PM, Rob Voyle robvo...@voyle.com wrote:
Hi Timothy
Instead of redirecting to: mydomain.com
cflocation url=http://www.mydomain.com;
It is throwing an error rather than redirecting.
How do I redirect?
Rob
On 2 Feb 2014 at
Hi Timothy
Which log would the error be in. I can't find the error in any of the logs.
The site is public and only displays a generic error template rather than the
specific error.
Rob
On 2 Feb 2014 at 11:58, Timothy Heald wrote:
What's the error message?
On Feb 2, 2014 11:42 AM, Rob
We don't know what's on the variable, and it's working through the first
half of the condition it sounds like.
Can you cflocate to the tld or do you require a filename?
On Feb 2, 2014 12:12 PM, Russ Michaels r...@michaels.me.uk wrote:
you firstly are trying to use fileExists on a URL, so it
What version of cf?
On Feb 2, 2014 12:19 PM, Rob Voyle robvo...@voyle.com wrote:
Hi Timothy
Which log would the error be in. I can't find the error in any of the logs.
The site is public and only displays a generic error template rather than
the
specific error.
Rob
On 2 Feb 2014 at
fileExists() accepts a filename on the filesystem, not a URL.
-Cameron
On Sun, Feb 2, 2014 at 11:41 AM, Rob Voyle robvo...@voyle.com wrote:
Hi Folks
I have a basic .html site that I have converted to a coldfusion site.
since there are many old .html links out there I added the following
Looks like newurl isn't a url, rather a path, it's appended to the domain
name.
On Feb 2, 2014 12:35 PM, Cameron Childress camer...@gmail.com wrote:
fileExists() accepts a filename on the filesystem, not a URL.
-Cameron
On Sun, Feb 2, 2014 at 11:41 AM, Rob Voyle robvo...@voyle.com wrote:
Nope, read that wrong.
On Feb 2, 2014 12:39 PM, timothy.he...@gmail.com wrote:
Looks like newurl isn't a url, rather a path, it's appended to the domain
name.
On Feb 2, 2014 12:35 PM, Cameron Childress camer...@gmail.com wrote:
fileExists() accepts a filename on the filesystem, not a URL.
Exception.log
On 2/2/14, 12:18 PM, Rob Voyle robvo...@voyle.com wrote:
Hi Timothy
Which log would the error be in. I can't find the error in any of the
logs.
The site is public and only displays a generic error template rather than
the
specific error.
Rob
On 2 Feb 2014 at 11:58, Timothy
Thanks guys
needed the absolute path in fileExist
Rob
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
You should also be retiring a 301 status code to the client. This makes a
difference for SEO purposes.
In CF7 or before you would need to use the cfheader tag. CF8 and on, you can
add the status code attribute to the cflocation tag.
Sent from my iPhone
On Feb 2, 2014, at 11:51 AM, Rob
17 matches
Mail list logo