• 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

PHP array_filter with arguments

MySQL/PHP - Web Based Game -User specific inventory table or 1 giant table? Another option?

Limit WooCommerce products in cart only from one custom taxonomy

Object of class stdClass could not be converted to string error

Mysqli Output to a table

Get WooCommerce products from specific category

VichUploaderBundle error "Expected argument of type "File", "NULL" given" when submitting the form without selecting any file

How to connect to MSSQL Server with PHP from Ubuntu 18.04?

Add New Parameter to Existing URL using htaccess

Boolean assignment operators in PHP

Parameter is not sent to Laravel route in Ajax

How to make a array inside array?

merge all files in directory to one text file

How to delete old images from public folder on update using Laravel

Get sql.h error on MacOS 12 (Monterey) sqsrv and pdo_sqsrv drive installation

About Contact Privacy policy Terms and conditions