• 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 make dot match newline characters using regular expressions

Doctrine ORM: Excluding Records Based on Values of Nested Relationships

Check if string contains a value in array [duplicate]

"cannot list resources" error from WooCommerce REST API

How to give apache permission to write to home directory?

Laravel Passport - Not able to get token string in response?

using random function but it's displaying duplicates

how to upload binary image to sql server using php laravel

How to disable widget block editor of WordPress?

php code to send checkbox form results to email

Unable to Edit config.inc.php

phpunit - mockbuilder - set mock object internal property

Laravel PHP: multiple project run at the same time [closed]

Problems getting instance of UploadedFile in Yii2

Remove country code from phone number?

About Contact Privacy policy Terms and conditions