Apache Rewrite Rule for root directory

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

 



We want to use URL www.xyz.com.au to access internet pages developed under
server www.abc.com.au/test eg www.abc.com.au/test/page1,
www.abc.com.au/test/page2 and www.abc.com.au/test/graphics/banner.jpg etc...
as www.xyz.com.au/page1, www.xyz.com.au/page2 and
www.xyz.com.au/graphics/banner.jpg.

The only way we have been able to do this to date is using the following
rewrite rules
<VirtualHost *:7779>
    ServerName xyz.com.au
    Port 80
    RewriteEngine On
   RewriteOptions inherit
    # Project Pages
    Redirect /index.html http://xyz.com.au/page1
    RewriteRule ^/page1*$ /test/page1 [PT,L,NC]
    RewriteRule ^/page2*$ /test/page2 [PT,L,NC]
    # Project Folders
    RewriteRule ^/graphics/(.*)$ /test/graphics/$1 [PT,L,NC]
    LogLevel warn
</VirtualHost>

Can anyone suggest an easier way to do this please?

Assistance is much appreciated.

Thanks
-- 
View this message in context: http://www.nabble.com/Apache-Rewrite-Rule-for-root-directory-tf3570101.html#a9973973
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[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