http://www.yoursite.com vs yoursite.com (no www)
I have a few questions about this, on my site all of the following are the same page:
http://www.yoursite.com
yoursite.com
yoursite.com/index.php
yoursite.com/index.php?page=1
Could this potentially mean that my PR could get divided by FOUR instead of TWO? and if so, can someone help me with an .htaccess file that will make everything direct to the http://www.yoursite.com ?
Best regards,
Bernie
page, work for me, not sure for Cold Fusion (and SE’s)
redirects only “index.html?anykey” index.html is not affected.
So where to install?
Thanks!
In the head section of the page you are trying to redirect, I believe…
So where to install?
Thanks!
Thanks though!
Bernie
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.
<.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?
And, does anyone know how to do this if you are on a MS Server? No .htaccess for me.
Please login or Register to submit your answer