Redirect url and preserve new name
--00032555929a63070e047daecac9
Content-Type: text/plain; charset=ISO-8859-1
Hi!
I'm configuring the Apache Server. I have a server mounted with the next
url: http://VMS-GEN-000/ <http://vms-gen-000/>
And a Wiki into with http://VMS-GEN-000/wiki/ <http://vms-gen-000/wiki/>url
I want that apache redirects to the wiki if the user types:
http://wiki.mydomain.com <http://wiki.miempresa.com/> and preserve this
prefix while browser across the wiki. for example, if types:
http://wiki.mydomain.com <http://wiki.miempresa.com/> and goes to the
Article 1, the URL will be http://wiki.mydomain.com<http://wiki.miempresa.com/>
/
Article_1
I've used this one:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} wiki.miempresa.es
RewriteRule ^(.*)$ http://VMS-GEN-000/wiki <http://vms-gen-000/wiki>
[R=permanent,L]
Redirects fine, but when the user browse, the url
http://VMS-GEN-000/wiki<http://vms-gen-000/wiki>returns appear.
What can I do? Regards
--00032555929a63070e047daecac9
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi!<br>
<br>
I'm configuring the Apache Server.
I have a server mounted with the next url: <a href=3D"http://vms-gen-000/" =
target=3D"_blank">http://VMS-GEN-000/</a><br>
<br>
And a Wiki into with=A0 <a href=3D"http://vms-gen-000/wiki/" target=3D"_bla=
nk">http://VMS-GEN-000/wiki/</a> url<br>
<br>I want that apache redirects to the wiki if the user types:=A0 <a href=
=3D"http://wiki.miempresa.com/" target=3D"_blank">http://wiki.mydomain.com<=
/a> and preserve this prefix while browser across the wiki. for example, if=
types: <a href=3D"http://wiki.miempresa.com/" target=3D"_blank">http://wik=
i.mydomain.com</a> and goes to the Article 1, the URL will be <a href=3D"ht=
tp://wiki.miempresa.com/" target=3D"_blank">http://wiki.mydomain.com</a>/<d=
iv id=3D":1dz" class=3D"ii gt">
Article_1<br>
<br>
I've used this one:<br>
<br>Code: <br><pre dir=3D"ltr" style=3D"margin: 0px; padding: 6px; font-fam=
ily: courier new,monospace;">RewriteEngine on<br>RewriteCond %{HTTP_HOST} <=
a href=3D"http://wiki.miempresa.es/" target=3D"_blank">wiki.miempresa.es</a=
><br>
RewriteRule ^(.*)$ <a href=3D"http://vms-gen-000/wiki" target=3D"_blank">ht=
tp://VMS-GEN-000/wiki</a> [R=3Dpermanent,L]</pre>
<br>Redirects fine, but when the user browse, the url <a href=3D"http://vms=
-gen-000/wiki" target=3D"_blank">http://VMS-GEN-000/wiki</a> returns appear=
..<br>
<br>
What can I do? Regards
</div>
--00032555929a63070e047daecac9--
Re: Redirect url and preserve new name
2010/1/21 Juan Jes=FAs Cremades Monserrat <relicary [at] 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=A0 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 th=
e
> 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=3Dpermanent,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#usecanonicaln ame ?
--
Eric Covener
covener [at] gmail.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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: Redirect url and preserve new name
On 01/21/2010 09:50 PM, Eric Covener wrote:
> 2010/1/21 Juan Jesús Cremades Monserrat<relicary [at] 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#usecanonicaln ame ?
>
>
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org