• 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

Pass a select with mysqli_fetch_row to a table

Laravel post contact form giving me error 419

How to get rid of ampersand using WP Nonce URL and WP Redirect or PHP header

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

How do I call a php file with axios?

Laravel MSSQL Server Connection not working

"There is no active transaction" when refreshing database in Laravel 8.0 test

Woocommerce redirect after add-to-cart error

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

Add custom text under order details on WooCommerce My account view order pages

Get WooCommerce products from specific category

ldap is missing from system when installing adldap2 in laravel

Problems getting instance of UploadedFile in Yii2

PHP DOTENV unable to load env vars

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

About Contact Privacy policy Terms and conditions