Redirect url and preserve new name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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]

Redirects fine, but when the user browse, the url http://VMS-GEN-000/wiki returns appear.

What can I do? Regards

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux