• 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

how to insert data into select2 search input after scan using qrcode

curl returning 301 error after migrating to https

args[max_input] woocommerce if statement confused

How to create a video stream from a single dynamic image in PHP

Why the name of trucks are same in 2nd and 3rd record of company data retrieval?

What is the difference between client-side and server-side programming?

Show Custom Data in Woocommerce Order Details Admin Area

What is PHP's equivalent of JavaScript's "array.every()"?

Any AWS EB Laravel route getting 404 Not Found nginx/1.16.1

Codeigniter, Severity: error --> Exception: Too few arguments to function, admin dashboard shows HTTP error 500

How to give apache permission to write to home directory?

api response laravel doesn't show

Display a product custom field only in WooCommerce Admin single orders

PHP contact form configuration [duplicate]

How can I convert from a{a{} b{}} to a[a[],b[]] using php preg_match?

About Contact Privacy policy Terms and conditions