• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

301 Redirect to remove query string on homepage only

php.htaccessredirectmod-rewritemagento-2.3


PHP Snippet 1:

# Remove query string on homepage only
RewriteCond %{QUERY_STRING} .
RewriteRule ^$ / [QSD,R=301,L]

Related Snippets

PHP-Sort array based on another array?

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

How can I access an array/object?

Correct way to use LIKE '%{$var}%' with prepared statements?

How to install php yaml on CentOs?

Store multiple fields in JSON column (Nova CMS)

Invalid value in field "itemtype" in Google Search Console

How to remove index.php and index from the URL using htaccess | PHP

Object of class stdClass could not be converted to string error

could not find driver Debian SQL Server PHP

str_word_count() function doesn't display Arabic language properly

Getting public posts of a random user from Facebook API

merging two arrays with specified index

Laravel print last executed SQL query with Query log

Display the WooCommerce product price inside a custom function

About Contact Privacy policy Terms and conditions