• 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

ldap is missing from system when installing adldap2 in laravel

how to check version of codeigniter framework?

laravel automatically deletes server.php on php artisan serve

sqlsrv_num_rows() expects parameter 1 to be resource, boolean given

Add restriction to WooCommerce coupons by allowed user ID

Redis Command To Sort Keys

Why the name of trucks are same in 2nd and 3rd record of company data retrieval?

Make survey at laravel 5.4 and MySQL

php script to delete files older than 24 hrs, deletes all files

How to remove index.php and index from the URL using htaccess | PHP

Center point of multiple gps coordinates with php

How to properly set "0000-00-00 00:00:00" as a DateTime in PHP

Laravel: Why is my variable not being set while it's in the construct function of the controller?

PHP -> Next nearest date defined by array of days in week

How to loop a tree array with unknown depth and get array blocks?

About Contact Privacy policy Terms and conditions