http://qs1969.pair.com?node_id=849442


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 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.
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".