I need php to get a variable from a url even if the mod_rewrite is set.
Mod rewrite as follows
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /*********/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.php/$1
RewriteRule ^(.*)$ /index.php?/$1
</IfModule>
Example url: http://www.example.com/something/somthing/?search=something
On my site it does not read the $_GET varible search at all
Add
[QSA]to the end of theRewriteRuleline. Standing for Query String Append, it does exactly what it says and appends any previous query string to the rewritten address.