• 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

Destroy session upon refresh

How can I get user id from session in javascript?

Edit XML in HTML form and submit to self

Why isn't my PHP exception working?

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

Lumen - Postgresql setup - Composer

laravel MVC execution flow

How to identify whether webp image is static or animated?

Lexik JWT authentication problem "Invalid credentials"

file_put_content...fail to open stream:Permission denied in Laravel 5

Sum array values of a column within each column of an array with 3 levels

php retrieve specific data onclick from database in a list format

Limit WooCommerce products in cart only from one custom taxonomy

Modify microseconds of a PHP DateTime object

PhpSpreadSheet: How to save Workbook sheets in individual CSV files

About Contact Privacy policy Terms and conditions