.htaccess - Where does htaccess cut query string? -


here htaccess

php_flag session.use_trans_sid off php_flag session.use_only_cookies on options +followsymlinks              rewriteengine on               rewritecond %{the_request} ^[a-z]{3,9}\ /index\.php\ http/             rewriterule ^(.*)$ http://automaticheskie-vorota.ru/? [r=301,l]               rewritecond %{query_string} mosconfig_[a-za-z_]{1,21}(=|\%3d) [or]              rewritecond %{query_string} base64_encode[^(]*\([^)]*\) [or]              rewritecond %{query_string} (<|%3c)([^s]*s)+cript.*(>|%3e) [nc,or]             rewritecond %{query_string} globals(=|\[|\%[0-9a-z]{0,2}) [or]             rewritecond %{query_string} _request(=|\[|\%[0-9a-z]{0,2})             rewriterule .* index.php [f]                rewriterule .* - [e=http_authorization:%{http:authorization}]             rewritecond %{request_uri} !^/index\.php             rewritecond %{request_uri} (/[^.]*|\.(php|html?|feed|pdf|raw))$ [nc]             rewritecond %{request_filename} !-f             rewritecond %{request_filename} !-d             rewriterule .* index.php [l] 

if go http://site.ru/?utm_source=123 site 301 redirect http://site.ru don't want so. can't understand cut query strings in htaccess.

remove ? first rule:

rewritecond %{the_request} ^[a-z]{3,9}\ /index\.php\ http/ rewriterule ^(.*)$ http://automaticheskie-vorota.ru/ [r=301,l] 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -