• 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

Not able to access model in the controller mautic

Laravel 5 controller sending JSON integer as string

Convert regular text to array using notepad++

Laravel 5.5 change unauthenticated login redirect url

OctoberCMS / Anonymous Global Scope

(Laravel) How to delete multiple models including optional relationships?

could not find driver Debian SQL Server PHP

Create a zip file and download it

Insert And Retrieve Data in MySQL with $.post Noob Question

php echo remove slashes from url [duplicate]

Can't exclude directories from .htaccess mobile redirect?

PHP contact form configuration [duplicate]

Combine array with same value and add other [duplicate]

Convert PHP array into HTML tag attributes separated by spaces

ldap is missing from system when installing adldap2 in laravel

About Contact Privacy policy Terms and conditions