• 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

Get orders by date and status woocommerce

Can I write PHP code across multiple lines per statement?

PHP Startup: Unable to load dynamic library 'openssl' in Ubuntu

php - add comma thousands separator but remove trailing zeros

Laravel Passport - Not able to get token string in response?

Creating a config file in PHP

unable to load your default controller on Codeigniter

PHP - CURL using HTTPS [closed]

Convert regular text to array using notepad++

How can I make Laravel return a custom error for a JSON REST API

PHPExcel file download using AJAX call

Confirm Leave on External Links in Wordpress

Symfony process run throws exception - executing on command line works

Convert date and time to Jalali in Laravel

Star and Half Star Rating in Laravel

About Contact Privacy policy Terms and conditions