How to chain two rules

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

 



Hello,
Can someone please advise how to chain two rules together so that:

[1]  <VirtualHost *:80>
[2]   ServerName mysite.com
[3]   ServerAlias www.mysite.com
[4]   RewriteEngine On
[5]   RewriteCond %{HTTP_HOST} ^www\.mysite\.info [nc]
[6]   RewriteRule (.*) http://mysite.info/$1 [R=301,C]
[7]   RewriteRule ^/(.*)
[8]   http://mysite.com:5080/VirtualHostBase/http/mysite.com:80/sites/site/VirtualHostRoot/$1
[L,P]
[9]   ErrorLog /var/log/apache2/site_error.log
[10]  CustomLog /var/log/apache2/site_access.log combined
[11]  RewriteLog /var/log/apache2/site_rewrite_log
[12] </VirtualHost>


When I have this rule, and type http://www.mysite.com my requests don't
go to the next rule. I have specified the 'C' flag which is the chain to
next rule, all I get is:


  Not Found

The requested URL // was not found on this server.



In the site_error.log

[Thu Nov 30 10:08:14 2006] [error] [client xxx.xxx.xxx.xxx] File does
not exist: /usr/htdocs

there is no error in the RewriteLog /var/log/apache2/site_rewrite_log

Can anyone please advise how to make this work.

Many thanks

Norman


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