Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: From php to perl + template solution

by Nik (Initiate)
on Jul 14, 2010 at 06:38 UTC ( [id://849442]=note: print w/replies, xml ) Need Help??


in reply to Re^3: From php to perl + template solution
in thread From php to perl + template solution

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^5: From php to perl + template solution
by scorpio17 (Canon) on Jul 14, 2010 at 13:46 UTC
    oops - that was a typo. I meant "mod_rewrite", not "mod_perl".
Re^5: From php to perl + template solution
by scorpio17 (Canon) on Jul 14, 2010 at 14:00 UTC

    I'd try something like this (untested):

    # skip rule if item is an actual file or directory # (like images or stylesheets) RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)/?$ /cgi-bin/index.pl/$1 [L,QSA]

    Your script can get the $1 parameter from $ENV{PATH_INFO}, and use that to determine which template file to use, etc.

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://849442]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-03-28 21:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found