[Nepal] Rewrite rule not working

Bryan Berry bryan at olenepal.org
Sun Sep 14 22:37:07 EDT 2008


Hey Bernie,

I am trying to create an Apache Rewrite Rule for
pustakalaya.olenepal.org 

I just registered http://www.pustakalaya.org and I want to reroute it to
pustakalaya.olenepal.org for the time being.

Here is the text in my apache2.conf file

RewriteEngine on
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 0 
RewriteRule http://(.*)%{SERVER_NAME}\.org/?$
http://pustakalaya.olenepal.org

This works for http://pustakalaya.org but not http://www.pustakalaya.org
which keeps routing to the mirror.olenepal.org home page.

Do you have any idea why? I remember you saying that the virtual hosts
set up on pustakalaya causes some weird issues.

buona serra mi amico hope to talk w/ you soon.


-- 
Bryan W. Berry
Technology Director
OLE Nepal, http://www.olenepal.org



More information about the Nepal mailing list