- This topic is empty.
-
AuthorPosts
-
July 28, 2005 at 10:23 pm #669409AnonymousInactive
Just took a look, and our http://www.domain.com has a different PR than the http://domain.com. Was wondering if anyone had done this fix and actually seen an improvement to their PR because of it?
And, does anyone know how to do this if you are on a MS Server? No .htaccess for me.
July 28, 2005 at 11:14 pm #669411AnonymousInactiveRedirect 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?
July 29, 2005 at 12:16 am #669414AnonymousInactiveAlthough 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.phpThe 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.July 29, 2005 at 6:13 am #669424AnonymousInactiveThanks blackjackinfo… I tried something like that (and just now tried exactly that), but neither work
Thanks though!
BernieJuly 29, 2005 at 10:25 am #669432AnonymousInactiveJavaScript?
July 31, 2005 at 6:49 pm #669515AnonymousInactiveThat 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!July 31, 2005 at 7:15 pm #669516AnonymousInactiveblackhawk 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…
July 31, 2005 at 9:41 pm #669522AnonymousInactiveIn 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. -
AuthorPosts