Posts Tagged htaccess
The question mark in URLs
Posted by martiendejong in PHP, Programming on March 21, 2010
When constructing an url via a plugin, you cannot always know at which position the ? will come.
A simple htaccess rule can be used to strip off the first ?:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*)&(.*) $1?stripquestionmark=true&($2) [L,NS] [L]