How to redirect url like "http://www.example.com/pathstring=something" to error page using htaccess file.
"http://www.example.com/path" this is part of url and "string=something" is part of query string.
if someone misses the "?" in query string, the page should redirect to error page.
Here is my htaccess code
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]