Code: Select all
SetEnv default_arg "jump"
RewriteEngine on
RewriteRule ^([a-z0-9\-]+)\.php$ index.php?{%default_arg%}=$1 [QSA]Moderator: General Moderators
Code: Select all
SetEnv default_arg "jump"
RewriteEngine on
RewriteRule ^([a-z0-9\-]+)\.php$ index.php?{%default_arg%}=$1 [QSA]And ... what's the main idea of doing this?There is the special format: %{ENV:variable} where variable can be any environment variable. This is looked-up via internal Apache structures and (if not found there) via getenv() from the Apache server process.