• 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

Message: Set sys_temp_dir in your php.ini after installed composer

Add Metadata, headers (Expires, CacheControl) to a file uploaded to Amazon S3 using the Laravel 5.0 Storage facade

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

Populate Dynamic Dropdowns List in Codeigniter

Laravel Collections. Is there some kind of assertStructure method?

Symfony redirect if already loggedin from login page

Prestashop cUrl Login

PHP array slice from position + attempt to return fixed number of items

Redis Command To Sort Keys

Reorder attribute dropdown terms in Woocommerce single variable products

Symfony Mercure "Failed to send an update"

How to display MySQL table using php and edit it in a web browser

Add and update products to session cart in Laravel

Cant seem to get the Pagination to work on my WooCommerce REST API application?

How to set a domain name with php artisan serve

About Contact Privacy policy Terms and conditions