Hi Monks, I am working on Unix to Linux Migration for an application and I am no +t able to make the PerlTranshandler work. The application is designed to change the URL inputted by the user i.e +. Html* and redirect it to new one i.e. g.asp?arguments Please find below the code snippet: if ( $r->uri =~ /^\/html\/(.*)$/i ) { $ruri = '/g.asp'; $r->uri($ruri); $r->args("f=$1"); } But the code flow is never moving to g.asp which has 777 properties an +d saved in the DocumentRoot. And when I am printing the r->uri and r->args: URI /g.asp URI /error/ Here i am not able to understand that the code is not going into g.asp + (because i have a print command in the first line itself and that ne +ver gets executed) secondly where does this error message gets popped + up? I have the following configuration on my system: 1. ModPerl2 installed and working fine. 2. Server version: Apache/2.2.12 (Linux/SUSE) Server built: Nov 30 2011 17:54:13 3. Added RewriteEngine On & Allowoverride All in the httpd.conf file. Best Regards, Abhijit Singh Dahiya

In reply to ModPerl2 Mod_rewrite by Abhijit10089

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.