--0-679108059-1290633356=:92825
Content-Type: text/plain; charset=us-ascii
Hi,
I am trying to setup some rules using Apache::ReadConfig (to setup
Apache config using mod_perl) and was wondering how am I supposed to
define the RewriteCond and RewriteRule entries.
I would like to implement something similar to the following inside a VirtualHost.
RewriteEngine on
RewriteRule ^/$ /frontpage [R=permanent]
RewriteCond '%{HTTP_USER_AGENT} "MSIE 7.0; Windows NT 6.1"
RewriteRule ^(.*)$ http://pbcweb:8089$1 [L]
Primarily the issue I am facing is to figure out how to associate the
RewriteCond with the RewriteRule. I can create an array of arrayref to
enable all the RewriteRule though I am not sure where the RewriteCond for a particular RewriteRule would fit. I am assuming they will be some sort of array of hash refs but I
couldn't find any example of how these arrays are to be structured.
I would be appreciate it if someone could point me in the right direction.
- Mithun
--0-679108059-1290633356=:92825
Content-Type: text/html; charset=us-ascii
<html><body><div style="font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 127); font-family: Courier New,courier,monaco,monospace,sans-serif;" class="doctext"><font face="arial, helvetica, sans-serif">
Hi,
</font><div><font face="arial, helvetica, sans-serif">
I am trying to setup some rules using Apache::ReadConfig (to setup
Apache config using mod_perl) and was wondering how am I supposed to
define the RewriteCond and RewriteRule entries.
</font></div><div><font face="arial, helvetica, sans-serif"><br>
</font></div><div style="font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; font-style: normal;"><font face="arial, helvetica, sans-serif">I would like to implement something similar to the following inside a VirtualHost.</font><br></div><pre style="font-family: monospace;" class="code"><div style="font-family: monospace;" class="codeblock"><font face="arial, helvetica, sans-serif"><span style="font-family: arial,helvetica,sans-serif;" class="codetext"><font size="-1"><font style="color: rgb(0, 0, 0);" face="Courier New, courier, monaco, monospace, sans-serif">RewriteEngine on<br>RewriteRule ^/$ /frontpage [R=permanent]<br>RewriteCond '%{HTTP_USER_AGENT} "MSIE 7.0; Windows NT 6.1"<br>RewriteRule ^(.*)$ http://pbcweb:8089$1 [L]</font><br></font></span></font
></div><font face="arial, helvetica, sans-serif" size="-1"><br></font></pre><font face="arial, helvetica, sans-serif">
Primarily the issue I am facing is to figure out how to associate the
RewriteCond with the RewriteRule. I can create an array of arrayref to
enable all the RewriteRule though I am not sure where the RewriteCond for a particular RewriteRule would fit.
I am assuming they will be some sort of array of hash refs but I
couldn't find any example of how these arrays are to be structured.
</font><div><font face="arial, helvetica, sans-serif"><br></font></div><div style="color: rgb(0, 0, 127); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><font face="arial, helvetica, sans-serif">
I would be appreciate it if someone could point me in the right direction.
</font></div><div><font face="arial, helvetica, sans-serif"><br>
</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div style="font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; font-style: normal;"><font face="arial, helvetica, sans-serif">- Mithun</font></div>
</div><font style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 127);" face="arial, helvetica, sans-serif">
</font></div><br>
</body></html>
--0-679108059-1290633356=:92825--
