Skip to content

Instantly share code, notes, and snippets.

@CB9TOIIIA
Created January 17, 2018 21:16
Show Gist options
  • Save CB9TOIIIA/0949fcdda1bb4fbbe1f2ccb0bbf7d11e to your computer and use it in GitHub Desktop.
Save CB9TOIIIA/0949fcdda1bb4fbbe1f2ccb0bbf7d11e to your computer and use it in GitHub Desktop.
Убрать Itemid
Пишем в .htacces следующее:
RewriteCond %{QUERY_STRING} ^(.*)Itemid=$
RewriteRule ^(.*) /$1?%1 [R=301,L]
или
RewriteCond %{QUERY_STRING} ^(.*)Itemid=([0-9]+)$
RewriteRule ^(.*) /$1?%1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment