• 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

How to fix this error : Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI?

echo language construct is discouraged. (PHP)

Adding Multiple Custom Post Types in Wordpress

PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: no such host known

Laravel 5 controller sending JSON integer as string

Laravel query builder binding parameters more than once

Wordpress how to get the post thumbnail inside a figure tag

Minimum order amount except for specific shipping method in WooCommerce

401 Unauthorized only occurring on some pages in Laravel 8

Laravel get user data with profile

Twig - How to check if variable is a number / integer

enroll_table three field fetch to payment form to create payment field in laravel 5.5

advanced custom fields wordpress custom class

PHP - Check if string contains words longer than 4 characters, then include "+ *", and for those shorter than 4 characters include only "*"

Can we define variables in `.tpl` files?

About Contact Privacy policy Terms and conditions