Get exclusive CAP network offers from top brands

View CAP Offers

google and Redirects

[bsa_pro_ad_space id=2]
  • This topic is empty.
Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #669411
    Anonymous
    Inactive

    Redirect in ColdFusion
    <.cfheader statuscode="301" statustext="Moved permanently">
    <.cfheader name="Location" value="http://www.new-url.com">

    The above won’t work for me because the problem I am having is:

    while index.cfm is a real page,
    index.cfm?var_file=cripcdir.htm – isn’t a real page.

    Basically the whole site is index.cfm… the variables tell the coldfusion page what data to load – kind of like a php include file… so the file: index.cfm?var_file=cripcdir.htm actually represents different content than index.cfm

    am i making since here?

    #669414
    Anonymous
    Inactive

    Although I know almost nothing about Cold Fusion, you should be able to test the value of the parameter sent to the page, and do the redirect only if var_file = cripcdir.htm

    As for the mod_rewrite solution, I’ll offer this, without testing:

    RewriteEngine on
    RedirectMatch (.*)/index.cfm?var_file=cripcdir.htm http://www.yourhost.com/cripple.php

    The idea is that the first gobbly-gook will match only the exact URL http://www.yourhost.com/index.cfm?var_file=cripcdir.htm
    The backslashes are necessary before any special characters.

    #669424
    Anonymous
    Inactive

    Thanks blackjackinfo… I tried something like that (and just now tried exactly that), but neither work

    Thanks though!
    Bernie

    #669432
    Anonymous
    Inactive

    JavaScript?





    #669515
    Anonymous
    Inactive

    That looks very interesting. I can’t understand it exactly … but where do I install this script? I would love to see something work.

    So where to install?
    Thanks!

    #669516
    Anonymous
    Inactive
    blackhawk wrote:
    That looks very interesting. I can’t understand it exactly … but where do I install this script? I would love to see something work.

    So where to install?
    Thanks!

    In the head section of the page you are trying to redirect, I believe…

    #669522
    Anonymous
    Inactive

    In the head section of the index.cfm
    page, work for me, not sure for Cold Fusion (and SE’s)
    redirects only “index.html?anykey” index.html is not affected.

Viewing 7 posts - 16 through 22 (of 22 total)