• 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 get monthly wise data in laravel

Sentry on Symfony: how to exclude `NotFoundHttpException`

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

How to to send mail using gmail in Laravel?

Detect if PHP session exists

Use Python plotly chart in PHP

Add rows to Single product Additional information table in WooCommerce 3.6

How to execute sql code based on fetch array

using random function but it's displaying duplicates

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

Laravel Mix Uncaught ReferenceError: $ is not defined

Hide specific products from unlogged users based in product category in WooCommerce

How to override header set in Apache config with more specific header in a virtual host

protect images from being copied

Implode columnar values between two arrays into a flat array of concatenated strings

About Contact Privacy policy Terms and conditions