View Full Version : htaccess
comperr
06-01-2007, 10:30 AM
I have this code
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.[^.]+\.magiccowcafe.com$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^www\.([^.]+)\.magiccowcafe\.com boardgamescity\.com$1$2
which is tying to redirect magiccowcafe to boardgamescity without changing the url (masking). For some reason the problem is going to be so obvious - but I'm missing it.
areidmtm
06-01-2007, 10:43 AM
It looks like you're trying to do wildcard domain, which is not support
comperr
06-01-2007, 10:53 AM
I mean from
magiccowcafe.com to boardgamescity.com
areidmtm
06-01-2007, 11:00 AM
is the domain on the same server?
comperr
06-01-2007, 12:27 PM
nope...but that does not matter.
charlesgan
06-01-2007, 08:53 PM
which is tying to redirect magiccowcafe to boardgamescity without changing the url (masking).
without changed the url...
browser wont allow that.... security concern
what you can do is to use frame, so that the address url will always showing magiccowcafe. or this might be sound like proxy.
areidmtm
06-01-2007, 09:01 PM
nope...but that does not matter.
That domains have to be on the same server to be able do what you're talking about
comperr
06-02-2007, 07:13 PM
no they do not.
I have done this before - masking a domain....
lets say the are on the same server - what would I do?
comperr
06-02-2007, 10:09 PM
here is my current code
RewriteEngine On
RewriteRule ^([^.]+)$ http://blah.free.com/$1 [L]
if you change the [L] to [P] it should work - but it does not.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.