htaccess rewrite conversion problem.
Added by simonlange about 12 years ago
Hi,
seems that more and more "php-developer" choose a really moronic way to give parameters to their php. whatever, some "customers" want to use their stuff and thats causing some problems with lighty.
# if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward it to index.php RewriteRule . index.php?__chive_rewrite_on=1&%{QUERY_STRING} RewriteRule ^$ index.php?__chive_rewrite_on=1&%{QUERY_STRING}
as u can see these ... intentionally create a 404 just to catch it with a rewriterule and transport the uri as parameter to index.php
Problem: AFAIK lighty cannot rewrite 404 to a dynamic url as apache does.
and afaik errorpage cannot give parameters to a errorpage like above.
so, does someone may have an idea how to solve this?
Simon