httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Mearns <mearn...@gmail.com>
Subject Re: [users@httpd] A dumb question but it has me stumped...
Date Sun, 29 Mar 2009 14:19:14 GMT
On Sun, Mar 29, 2009 at 6:34 AM, Glen Barber <glen.j.barber@gmail.com> wrote:
> On Sun, Mar 29, 2009 at 6:18 AM, Mike Lyon <mike.lyon@gmail.com> wrote:
>> Hello Again,
>>
>> I have a reverse proxy configured and I would like to make it so if someone
>> goes to https://www.mydomain.com/ that they get redirected to
>> /beginhere.html
>>
>> I have tried using the alias and redirect directive but I have gotten no
>> where. The various items I have tried are:
>>
>>
>> redirect / /beginhere.html
>> &
>> alias / /beginhere.html
>> &
>> RewriteEngine On
>> RewriteRule ^/$ https://www.mydomain.com/beginhere.html
>>
>> None of these work. Am I even able to do this kind of fine-grained
>> forwarding at the proxy level?
>>

I don't think you can use full URI's in a rewrite rule without using
the R (redirect) flag. So I think the rewrite rule you want is:
RewriteRule ^/$ https://www.mydomain.com/beginhere.html [R]

But is www.mydomain.com the name of the apache server you're actually
configuring, because then you don't need to use the full domain, just

RewriteRule ^/$ /beginhere.html [R]

And in this case, you don't need the [R] flag if you don't want, but
it the new URL won't show up in the user's browser without that flag,
it will be a transparent rewrite performed only the server, the user
will be oblivious to it.

-Brian


-- 
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://pgp.mit.edu/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message