httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nilesh Govindarajan <li...@itech7.com>
Subject Re: [users@httpd] Redirect url and preserve new name
Date Thu, 21 Jan 2010 17:09:12 GMT
On 01/21/2010 09:50 PM, Eric Covener wrote:
> 2010/1/21 Juan Jesús Cremades Monserrat<relicary@gmail.com>:
>> Hi!
>>
>> I'm configuring the Apache Server. I have a server mounted with the next
>> url: http://VMS-GEN-000/
>>
>> And a Wiki into with  http://VMS-GEN-000/wiki/ url
>>
>> I want that apache redirects to the wiki if the user types:
>> http://wiki.mydomain.com and preserve this prefix while browser across the
>> wiki. for example, if types: http://wiki.mydomain.com and goes to the
>> Article 1, the URL will be http://wiki.mydomain.com/
>> Article_1
>>
>> I've used this one:
>>
>> Code:
>>
>> RewriteEngine on
>> RewriteCond %{HTTP_HOST} wiki.miempresa.es
>>
>> RewriteRule ^(.*)$ http://VMS-GEN-000/wiki [R=permanent,L]
>
> You just explicitly redirected to the hostname you don't want, why?
>
>>
>> Redirects fine, but when the user browse, the url http://VMS-GEN-000/wiki
>> returns appear.
>
>
> http://httpd.apache.org/docs/2.0/mod/core.html#usecanonicalname ?
>
>

I give the same answer. You should use internal rewrite or proxypass.

BTW, what is next ? Hearing for the first time.

-- 
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com

---------------------------------------------------------------------
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