开发者

Remove/ Redirect URL query string

开发者 https://www.devze.com 2023-03-04 20:19 出处:网络
Example: http://dearearth.net/news/?cbg_tz=240 Plugin site with query string example and explanation: http://plugins.righthere.com/custom-backgrounds/multiple-schedule/?cbg_tz=480

Example: http://dearearth.net/news/?cbg_tz=240

Plugin site with query string example and explanation: http://plugins.righthere.com/custom-backgrounds/multiple-schedule/?cbg_tz=480

I had come ac开发者_如何转开发ross in the past of a way to remove the unwanted ?cbg_tz=240 which is appended to all the URL. This seems to be affecting my analytics and creating dupes wth/ without the string...

I believe it's fairly simple with an .htaccess edit. Anyone have the .htaccess settings which would accomplish this task?

Thanks!


Something similar: how to remove url parameters in htaccess

This should work:

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{QUERY_STRING} .
    RewriteRule (.*) $1?
</IfModule>
0

精彩评论

暂无评论...
验证码 换一张
取 消