• 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

mysql slow on updates for a well optimized query

Symfony 4: "Autowire: you should configure its value explicitly."

Laravel 5.1 how to use {{ old('') }} helper on blade file for radio inputs

How do I truncate a decimal in PHP?

How to prevent phpmailer sending embedded image as an attachment on Gmail?

Using array_intersect on a multi-dimensional array

curl returning 301 error after migrating to https

Store multiple fields in JSON column (Nova CMS)

Having trouble with PDO queries (Notice: Undefined index)

PHP array, move keys and values to new array, but mix it up

No definition found for function in vendor vscode

Laravel Nova Dependency Container what are the allowed resource properties other than id in dependsOn

Laravel You requested 1 items, but there are only 0 items available

Appending data to an anchor tag

Wordpress add responsive srcset header image to theme

About Contact Privacy policy Terms and conditions