httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WC -Sx- Jones <li...@insecurity.org>
Subject Re: [users@httpd] mod rewrite problem
Date Thu, 22 May 2003 10:47:10 GMT

On Thursday, May 22, 2003, at 05:50  AM, Julian Grunnell wrote:

> Making some progess. I now have:
>
> ...
> RewriteEngine on
> RewriteLogLevel 9
> RewriteLog logs/rewrite.log
> RewriteCond %{HTTP_HOST} ^www\..*
> RewriteRule ^/(.*)$ http://www1.whatever.com/$1
> ...
>
> Which sends www.* to www1.whatever.com/
>
> But is there a single rule that for example would send:
> www.test1.com --> www1.test1.com
> www.test2.com --> www1.test2.com
> www.test3.com --> www1.test3.com


Yes, try -

RewriteEngine on
RewriteLogLevel 9
# 9?!? Owie! That's a lot of *meaningless* debug data...
RewriteLog logs/rewrite.log
RewriteCond %{HTTP_HOST} ^www\..*
RewriteRule ^www\.test(\d*)/(.*)$ http://www$1.test$1.com/$2

That should redirect infinite www.testNumbers.com to 
wwwNumbers.testNumbers.com ... I think
... Something like that - too earlier, still, for me I guess ...


BTW - Those of you who have tried to reach me - my mail server is back 
on-line ;)

http://insecurity.org/
_Sx____________________
  ('>    iudicium ferat
  //\   Have Computer -
  v_/_    Will Hack...

               \|/ ____ \|/
               "@'/ .. \`@"
               /_| \__/ |_\
                  \__U_/


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