• 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 rotate matrix counter-clockwise

Woocommerce redirect after add-to-cart error

Laravel/docker-compose/redis - Class 'Redis' not found

Mysqli multi query error

How to install php yaml on CentOs?

Lumen - Postgresql setup - Composer

Laravel - Browser displays message again when I press back button

wp_remote_get() not passing authentication

PhpSpreadSheet: How to save Workbook sheets in individual CSV files

how to make my own auto increment in php?

phpseclib 2.0 can not use Composer to create autoload

Prevent blank space in pdf pages (DomPdf)

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null

Error Class "LaravelFortifyFeatures" not found

PHP password_verify

About Contact Privacy policy Terms and conditions