Not being a programmer at all (having adopted the company
site from a former employee) - I wing it and ask for help when I'm
stuck. I don't know why my code isn't working. I have two issues.
Issue 1:
I'll explain a little so you understandhow our site is set up
and works (maybe it will be obvious to you, but it wasn't to me),
and what I needed done and how I got it to do it. Then I'll explain
my problems.
Our site is set up so that everything displays off the index
page, all links to internal pages would have a path like this:
www.mysite.com/index.cfm?action=pagename All the internal
pages are stored off the root folder in a subfolder called
includes.
What I needed done:
Telling an end user to type
inwww.mysite.com/index.cfm?action=help was asking for trouble, so I
wanted them to be able to enter
www.mysite.com/help and have the
help page load.
How it got done
I created a subfolder named help, off my root.
In that subfolder is an index.cfm.
The ONLY code in that index page is
<cflocation url="index.cfm?action=page">
Thus, when someone types
www.mysite.com/help, the index page
from the help folder redirects them to the help.cfm page (which is
stored in the previously mentioned folder called includes)
Does that make sense?
Well it works for two of my pages (
www.mysite.com/help and
www.mysite.com/other)
Now here is the problem
When I start navigating the path file deeper, with
subfolders, it doesn't work. - which is why I'm here.
If you understand what I did to fix redirect, hopefully you
can help me redirect some more pages.
I need the following paths to work:
www.mysite.com/
subfolder/help - needs to display the help.cfm file which is
stored in my 'includes' folder
www.mysite.com/
subfolder/faq - needs to display the faq.cfm file which is
stored in my 'includes' folder
www.mysite.com/
subfolder/updates - needs to display the updates.cfm file
which is stored in my 'includes' folder
I think the 'subfolder' is what is causing my problem.
Inside the subfolder, I have 3 folders, help, faq and
updates.
Inside each of those folders I have an index.cfm file, with
only the code:
<cflocation url="index.cfm?action=page"> where
page directs to the help, faq and updates.cfm respectively.
The actual help.cfm, faq.cfm and updates.cfm are located in
the 'includes' folder with all the rest of the pages in my site.
In the 'index.cfm' page that controls my site, I'm
guessing the code to direct to the pages in a sub folder..
In abbreviated format, this is the code that I have on my
master index.cfm page:
<cfcase value ="faq">
<cfinclude template="includes/faq.cfm">
</cfcase>
Is it somewhere in the cfcase value where I'm going to make
an edit?
When I had the faq file stored in the subfolder, my cfcase
looked like this (and didn't work):
<cfcase value ="faq">
<cfinclude template="
subfolder/faq.cfm">
</cfcase>
Issue 2:
Now after all THAT ... it doesn't work in Firefox. I get a
firefox message
"The page isn't redirecting properly
Firefox has detected that the server is redirecting the
request for this address in a way that will never complete."
Can anyone suggest code that will work with Firefox AND IE?
Thank You.