Why don't you just use an "A" link in DNS to send it to your same server and if you have multiple virtual pages just use the same rule set as www.mydomain.com. If you only have one server running then you don't even need to do that. You will then be able to do logging based on who went to mydomain.com and www.mydomain.com and other cool things. Austin On Wed, Dec 12, 2001 at 06:04:40PM -0600, JW wrote:
Hello,
My boss just told me that, in addition to all of the below (which seems to be working, BTW), the post data must get passed along with the redirect.
For example if a bot tries to log in to http://mysendtraffic.com/login.php by posting to it, the post needs to actually end up getting sent to http://www.mysendtraffic.com/login.php _along_with_ it's POST data. Is this possible? The redirecting is working fine, but the post data isn't getting sent along with it, so the actual log-in is not taking place :-/
Help, please :-)
At 05:37 PM 12/12/2001 -0600, you wrote:
Hello,
I'm trying to write a URL that redirects http://mydomain.com/
to http://www.mydomain.com/ without loosing "/ . i.e. redirect it to www.mydomain.com but send the whole rest of the URL (query strings and all) along with it.
So far (after reading much documentation) I have the following ruleset:
RewriteEngine on RewriteCond %{HTTP_HOST} ^centraltexasit\.com [NC] RewriteRule ^/(.*) http://www.centraltexasit.com/$1 [R]
It seem to work ok but I'm hoping someone who knows more about URL rewriting then I do would take a look at it to see if I'm missing anything that's going to hurt. basically we are trying to sneak the www. onto the front of the fqdn when they forget to use it, without breaking the rest of the URL, especially since some of the "visitors" are bots that are posting data.
It's not clear to me if I need [L] or not e.g.
RewriteRule ^/(.*) http://www.centraltexasit.com/$1 [L,R]
It doesn't seem like I do, is that correct?
---------------------------------------------------- Jonathan Wilson System Administrator
Cedar Creek Software http://www.cedarcreeksoftware.com Central Texas IT http://www.centraltexasit.com
NetSpace LISTSERV(R) software donated by L-Soft, Inc. http://www.lsoft.com
---------------------------------------------------- Jonathan Wilson System Administrator
Cedar Creek Software http://www.cedarcreeksoftware.com Central Texas IT http://www.centraltexasit.com
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
-- __ __ ____ ____ | \/ |/ ___/ ___| Austin Morgan | |\/| | | \___ \ Morgan Computer Services | | | | |___ ___) | 501-857-1189 |_| |_|\____|____/ www.morgancomputers.net