Hot answers tagged

2

is there any way one can include a variable 10th parameter in a rewrite rule As far as I'm aware you can only use the backreferences $0..$9 ($1 to $9 references the parenthesised/captured groups and $0 references the entire pattern that is matched) in Apache regex (eg. mod_rewrite, etc) to reference captured groups in the RewriteRule pattern (%0..%9 for ...


1

What you are referring to is a "front controller". The usual first step is to make sure that the resource being requested is not a physical file on the filesystem before rewriting to your front controller (ie. your Perl script). For example, using mod_rewrite in your root .htaccess file: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...


1

I would NOT do ssl unless it is a SHA2 official CERT and unless you have control of httaccess folder redirections. Run a Google search for: "FORCING ssl via htaccess" (Note that Google Chrome may show you an error on a CERT if it is a SHA1).



Only top voted, non community-wiki answers of a minimum length are eligible