Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: From php to perl + template solution

by Nik
on Jul 14, 2010 at 06:38 UTC ( #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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2021-09-18 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?