Application.cfm /cflocation and redirection of changed link

I have a link on my site http://www.mysite.com/ssl/oldpage.cfm that I have renamed to http://www.mysite.com/ssl/newpage.cfm.
Many of my users have the old page bookmarked etc..................
Is there a way to put code in the application.cfm that says if user trys to go to old page automatically redirect them to the new page?

Not in the application CFC.
But there is a great place to put code like that in most web server configurations.
If not that, then the next level would be defining the "missing template handler" in the ColdFusion administrator.
Finally, if you can't do either or those, keep the old file, but replace all of it's code with a <cfheader...> redirect (or a <cflocation...> permanent redirect if you are on a new version of ColdFusion.
But, really, this is a web server level task and that is the best place to put this if you have contorl of yours.

Similar Messages

  • TS1717 iTunes "Terms and Conditions Have Changed Before you can proceed you must accept the terms and conditions" is on an infinite loop.  No matter how many times I agree, when I go to update my apps the terms and conditions have changed link reappears.

    Can anyone help me?  Suddenly (i.e. just a few minutes ago) this problem has appeared.  I attempted to update two apps on my iPad.  The Terms and Conditions agreement comes up, I read the terms and conditions, I agree to them, I click AGREE, it disappears, I reclick on update and the Terms and Conditions agreement appears and we start the mobius strip all over again.  I tried to see if it was just on my iPad by trying to download a new app on my iPhone.  same problem.  Anyone have advice on how to resolve this issue?  Oh, and of course, Apple has declared my two new devices to be out of warranty and want me to pay to ask how to fix a problem caused by their own software.  Lovely.  so helpful.  Hey Cupertino ... are you paying attention?  I might start tweeting about this.

    I updated the software on my iphone4 tonight and ran into this same endless loop - "itunes terms & conditions have been changed" - go to itunes, aceept - back to the "T&C have been changed message" with no ability to do anything in the app store until I accepted the new terms.
    While not a very direct solution, I was able to finally accept the terms in a way that seem to register with apple by making a purchase through iTunes on my computer. This forced me through updating my payment information and updating my iTunes software to the latest edition (which I had not yet taken the time to do).  After doing both of these, iTunes took me through the terms & conditions on two separate pages, but ultimately allowed me to purchase my song.  Once I completed these steps, it fixed the problem on my phone, so now I can update my apps and download new ones without running into that loop.
    Hope this helps!!!

  • Symbolic Links do not work for Application.cfm in CF10

    I have a Web, that use a symbolic link for centralized code.
    The Application.cfm, stored in the original web-root, will not read from code
    in the linked directory.
    Thank you for your assistance.

    Adam,
    it seems to be a bug.
    The "Application.cfc/Application.cfm lookup order" in the ColdFusion Administrator seems not functional as expected. I did several tests and it happens not only at symbolic links. This happens on every subdirectory.
    Am I wrong, when I expect, that the "highest" Application.cfm found in a tree should be executed?
    Example:
    Application.cfm
    aaa.cfm
    "subdir1"                                 "subdir2"
    bbb.cfm                                   Application.cfm
                                                    ccc.cfm
    Settings in the ColdFusion Administrator
    Default order:
    - aaa.cfm: should execute the Application.cfm in root (/) only.
    - bbb.cfm: should execute the Application.cfm in root (/) only.
    - ccc.cfm: should execute the Application.cfm in subdir2 only.
    Until Webroot
    - aaa.cfm: should execute the Application.cfm in root (/) only.
    - bbb.cfm: should execute the Application.cfm in root (/) only.
    - ccc.cfm: should execute first the Application.cfm root (/) and then in subdir2
    In Webroot
    - aaa.cfm: should execute the Application.cfm in root (/) only.
    - bbb.cfm: should execute the Application.cfm in root (/) only.
    - ccc.cfm: should execute the Application.cfm in root (/) only.
    Am I wrong with this?
    In my case, only "In Webroot" work as expected.
    Torsten

  • Passing variable from one server to another within different application.cfm

    hello all.
    currently , i have 3 server..
    each is installed with coldfusion server.
    let says,
    server A,server B, and server C.
    server A has the application.cfm for login.
    from server A , I want to carry the login ID to server B(also
    has application.cfm) or server C(also has application.cfm) without
    having to login again.
    Present, what I facing right now..
    server A has the application.cfm login and then direct to
    server B(also has application.cfm).
    But at server B it will request user to relogin.
    Same with server C.
    should I changed and modified the application.cfm in server B
    and C by removing 'cflogin statement'?
    I have no idea.. :chomp: :confused:
    Please anybody, help me with this..

    I'll admit I'm not the most educated on application/session
    management but I'll try and help.
    When a user logs into your CF server, it creates the session,
    which is only for that server. That's probably the issue you're
    running into when the user jumps from one server to the next. You
    might want to try using a cookie and CFTOKEN on the login (server
    A) and then use the application.cfm file on server B and C to check
    for the existence of the token. If it's there (in the client
    cookie) then it would allow them access.
    ---set the application in the application.cfm page on all 3
    servers to the same name---
    <cfapplication name="myappname"
    sessionmanagement="Yes"
    clientmanagement="Yes"
    SESSIONTIMEOUT=#CreateTimeSpan(1, 0, 0, 0)#
    setclientcookies="yes">
    ---then check for the cookie value on each server as well---
    <CFIF IsDefined("Cookie.CFID") AND
    IsDefined("Cookie.CFTOKEN")>
    <CFSET Variables.CFID_LOCAL=Cookie.CFID>
    <CFSET Variables.CFTOKEN_LOCAL=Cookie.CFTOKEN>
    <CFCOOKIE NAME="CFID" VALUE="#Variables.cfid_local#">
    <CFCOOKIE NAME="CFTOKEN"
    VALUE="#Variables.cftoken_local#">
    </cfif>
    There might be some yes/no variables in the session
    management you can set (yes on A, no on B and C) if the above does
    not work. But with the users jumping across servers, the cookie
    might be the best answer for you.
    Actually, I realized something. You would want to set the
    setclientcookies only on server A but have B and C check for the
    cookie.
    Hope some of this helps.

  • How to change links that didn't automatically update?

    Is there an easy way to change how you linked documents site-wide? When I first started working on our site, I was working straight off of the FTP connection, then after I created the first page I realized I could use a local site and save it to the FTP later. I used an unnamed server connection saved on my hardrive that  Dreamweaver set up by default. When I saved it to the FTP site, about half of my links didn't work anywhere but on my own computer (they were still linking to a local disk). When I uploaded them to the FTP later, the links in all of my pages were not updated to the FTP version. I have used the check-links site wide function and tried to change links site wide, but I must be doing something wrong. Is there any easy way to search a site for links to images etc. that link to the local disk to the remote site?
    If you'd like to look at the code, the site can be found at http://www.gilbertassociates.com/new09/gahome1.html

    You have many instances of this (paths linking to files on your local hard drive):
    <script src="file:///C|/Documents and Settings/kristen/Application Data/Adobe/Dreamweaver CS4/en_US/Configuration/ServerConnections/Unnamed server/SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
    <script type="text/javascript">
    Do a Ctrl+F (find)
    Entire Local Site Folder
    Source Code
    file:///C
    On the search results panel, go to the code and re-link to proper folder and file location.
    This is assuming you have a properly defined DW Site Folder.  If you haven't defined a local site folder yet.  Read Help (F1)  Using Dreamweaver > Dreamweaver Basics > Setting Up a Dreamweaver Site.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Hacking Application.cfm

    In the past couple of weeks hackers have somehow been getting access to my application.cfm file and altering it, making my website not come up properly.
    Is this a known security problem and does anyone know how to protect the file from getting hacked?

    Hi Rene,
    I would recommend looking for any unknown file and schedule task created in past few months. The files names have been mostly h.cfm and i.cfm. However it can be anything. Please also apply the recent security patches and take the steps mentioned. Fixing the application.cfm might not help completely in case back door files from previous attacks are lying in the server.
    Hope this helps.

  • Submit Action and Redirect page in Tabular form Column Link

    Hi All,
    I have a scenario to submit the current page and redirect to another page with the arguments, when i clink on the link which is created using column link in Report Attributes.
    I can able to perform the submit action, but redirection is not happening.
    Created a column link on non database column by providing
    Link Attribute :     <a href="#" onclick="doSubmit('SAVE')">#FAM_DET#</a>
    Target : Page in this application
    Page : 7
    Item name : P7_TRAVEL_REQ_ID
    item Value: #TRAVEL_REQ_ID#
    Item name : P7_TRAVEL_REQ_LINE_ID
    item Value: #TRAVEL_REQ_LINE_ID#
    Can anyone help me out to resolve this.

    811598 wrote:
    Please update your forum profile with a real handle instead of "811598".
    When posting a question here, always include the following information:
    Full APEX version
    Full DB/version/edition/host OS
    Web server architecture (EPG, OHS or APEX listener/host OS)
    Browser(s) and version(s) used
    I have a scenario to submit the current page and redirect to another page with the arguments, when i clink on the link which is created using column link in Report Attributes.
    I can able to perform the submit action, but redirection is not happening.
    Created a column link on non database column by providing
    Link Attribute :     <a href="#" onclick="doSubmit('SAVE')">#FAM_DET#</a>
    Target : Page in this application
    Page : 7
    Item name : P7_TRAVEL_REQ_ID
    item Value: #TRAVEL_REQ_ID#
    Item name : P7_TRAVEL_REQ_LINE_ID
    item Value: #TRAVEL_REQ_LINE_ID#
    Remove the link attribute (what you have used there is not the correct way to use this property anyway).
    Change the target page to the same page as the report.
    Set the Column Link Request property to BRANCH_TO_PAGE_ACCEPT|SAVE.
    Create an On Submit: After Processing (After Computation, Validation, and Processing) branch to page 7, conditional on the SAVE request.
    If the SAVE request can be triggered by something other than the report link (e.g. a Save button) then use another request value that will trigger the required page process in the link request and branch condition, e.g. BRANCH_TO_PAGE_ACCEPT|APPLY and APPLY respectively.
    Note that there is a bug in BRANCH_TO_PAGE_ACCEPT processing in APEX 4.2.3 and a patchset exception must be installed for this approach to work on this APEX release.

  • Setting/changing a date in application.cfm

    I need to be able to set a date in the application.cfm file
    for example
    <CFSET APPLICATION.stopdate='10/15/2014'>
    Then in my site on other pages I have code that says
    <cfif reportdate GT #APPLICATION.stopdate#>Do This</cfif>
    The problem is sometimes I need to change the APPLICATION.stopdate to another date during the middle of the day.
    For example I need to change the APPLICATION.stopdate from 10/15/2014 to 10/25/2014
    However I notice when I change the  APPLICATION.stopdate in the application.cfm to another date during the middle of the day that the APPLICATION.stopdate stays the old date.
    How do I make sure that the APPLICATION.stopdate changes sitewide when I change it in the application.cfm?
    Do I use another variable scope?

    Yes, that's one use of the include directive, lets you add content inline. You missed an "@" there though. It's <%@ include...
    EDIT: One word of warning; it is not mandatory for the container to recompile the including JSPs if the included resource is changed! It seems you have a smart container which detected that your included JSP had been modified and so it's reflecting the changes in the other files too. But this is not required behaviour and so you shouldn't count on it. AFAIK, Tomcat will also do the same.
    Also, this is a good reason why, even though it seems like a good idea to put the DB URL into one JSP and include it everywhere so that you have only one entry to change when the DB changes, it's still risky. A better way would be to put it as a <context-param> or something similar.
    Edited by: nogoodatcoding on Sep 28, 2007 10:15 PM

  • Application.cfm in root and subdirectory, help.

    I cannot figure this out. I understand that an application
    will use the application.cfm file in it's current directory first
    and not search further. However, my page in a subdirectory seems to
    not see the application.cfm in it's own directory and instead uses
    the root application.cfm. Can anyone explain? And I have tried
    capitalizing the "A", etc. but I am not using Linux so I do not
    think it matters anyway. (CF MX)

    Hard to tell exactly, but in the subdirectory, is the ONLY
    line the <cfset application.dsn_test = "DiningHall">?
    If so, the subdirectory application.cfm would execute and the
    parent would not, which would cause the undefined error since from
    what I can tell, you haven't used the <cfapplication> tag in
    the subdirectory.
    What you can do is use a cfinclude in the subdirectory
    application.cfm.
    <cfinclude template="../application.cfm">
    <cfset application.dsn_test = "DiningHall">
    However.... That's a big no no if you're using this to
    actually change application scope parameters, since someone
    visiting the subdirectory would reset the DSN for someone that
    might still be navigating around in the parent directory.
    So what good is using the cfinclude method? Well, you can
    lock subdirectories to roles this way.
    <cfinclude template="../application.cfm">
    <cfif getAuthUser() eq "" or not IsUserInRole("Admin")>
    Access Denied!
    <cfabort>
    <cfif>
    Consider changing the DSN setting to use the request.scope to
    isolate the change to the user.
    <cfset Request.appDSN = "DININGHALL">

  • Why do i get redirected when I click on search link If I hit the back button and click on the link again It was allow me to go there

    I use Google to search I click on the link and I get redirected to some other page I click on my back button and re click on the link and it will the allow me to go the link. it does this to me 40% of the time and I know the links that I'm click on a a known good link cause I used them before I just have not save them to my bookmarks

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • I keep getting a warnin that my pages document could not be auto saved. The file has been changed by another application. Click save anyway to keep your changes and save the changes made by the other application as a version, or click revert to keep the c

    I keep getting a warning stating that the document could not be auto saved in pages. The file has been changed by another application. Then it says click save any way to keep your changes and save the changes made by the other application as a version, or click revert to keep the changes from the other application and save your changes to a version.
    What in the heck does all that mean, and why are they trying to behave like a Windows product or a Microsoft office product. I just don't get it.
    Why is another application changing my documents? It's like they've created a virus within their own programs. It's a pain in the neck and makes no sense.

    I am also having the issue of a warning saying "could not be auto-saved in Pages. The file has been changed in another application. I then hit "save anyway", the warning will go away for a time, sometimes minutes, sometimes hourr, but then the warming reapprears saying the same thing. This is not the case with all Pages documents but it is the case with many.
    Working with a Retina Macbook Pro and current software
    These are newly created documents

  • Does In-Browser Editing now allow adding/changing links to images and text?

    There are images that link up to pages within the site and to external sites. When a client wants to change the image it needs to link to a new page. Is there a way they can now do that with in-browser editing?

    Hi Andria,
    Changing links is currently not possible with in-browser editing.
    Please post this as a feature request in the following feedback form :
    http://feedback.inbrowserediting.com/?url=
    Regards,
    Akshay

  • New user of Mountain Lion. I find that when I attach a URL as a link to Mail 6.0. The font and font size changes!!!!

    I have a problem with either Mountain Lion, Safari or Mail 6.0.
      When I try to attach a URL as a link that is taken from Safari to mail 6.0 the font and font size changes!!!!!
    It changes from comic sans 24 to heltvekia 12!!!! What the heck is going on??????
    Thanks for any help you can shed on this problem.
      BBC1050

    I also upgraded to Lion and do have font problems in Mail. Just in some mails, including my own signature.
    I just updated today with 10.7.1, but still have the font problem.
    Does anyone know if Apple will solve this?

  • Changing link navigation bar font and color

    Is it possible to change the font and color on the links for each page on iWeb?

    Welcome to the Apple Discussions. Yes, with the code and a HTML snippet that's described in this tutorial: #24 - How to Change the Basic, Rollover and Visited Color of an iWeb Navbar.
    However, if you want to create a site that is more search engine friendly I suggest you create a text based navbar as described in this demo page: Text Based Navbar. If you don't have a lot of pages in your site it's not too difficult.
    OT

  • Read the file on application server and Z  table as Link in ALV report.

    Hi ,
    I need some suggession on following requirement.
    I need to develop an ALV report where, I have to display 6 column. Four rows are kind of data which i am getting from some tables. But other two column are link to Excel files. So following are the two cases
    Case 1: One of these column has a link, and when you select this link , an Excel file gets open and this Excel file is stored in Application server.
    Case 2: The other column, will have a link and after selecting the link, an Excel file gets open but this time the Excel file is coming from a Z table( Stored as File name..file type and File content).
    Please give some light on these two cases.
    Regards
    PG

    Hi PG,
    If I understood you have to handle some different links.
    Well,
    you can try to do this:
    1- when you fill the fieldcat structure you have to add --> fieldcat-hotspot = 'X', for each column you want to handle like hotspot.
    2- manage the method hotspot_click of class cl_event_receiver where you can handle your different excel files.
    Let me know,
    bye
    Alessandro

Maybe you are looking for

  • How do you change the appearance of iCal in Lion?

    The reason I am asking as I am not fond of the "suede leather western-look" & hoped there were other options to choose from. I would think there would be but I can not seem to find info. HELP!

  • I want to change my payment information

    I need to change my payment information

  • Reference table of structure LBBIL_INVOICE ?

    Hi Expert, I want to create smartform based on standard SAP program. Printing Program : RLB_INVOICE Smartforms : SF_LB_INVOICE I have problem during change smartform. The interface of smartform is IS_BIL_INVOICE TYPE LBBIL_INVOICE. This structure con

  • Webservices lookup EJB error

    This are the sever log . ejb ref resolution error for remote business interfacetest.session.Hello [Root exception is java.lang.RuntimeException: Could not invoke defineClass!]      at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:35

  • User Table Keys

    Dear All, I observed a button "Keys" in the "User Defined Fields-Management" screen. What is the purpose of the button and how can we utilise the keys? Regards Bharath S