• 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

Google Gmail API - How to login programatically?

loop through an anchor id

How to loop sql table data inside a html table

Laravel Schedule not sending email

Laravel update hasMany relationship using saveMany

Laravel query builder binding parameters more than once

How to break out of a foreach once a condition is met?

What is PHP's equivalent of JavaScript's "array.every()"?

How to Install Composer Require doctrine/dbal

Check if a string contain multiple specific words

Adding multiple items to WooCommerce cart at once

How can I get a div content in php

Why is this PHP array not the same?

How to assert parameter attribute sub-structures in PHPUnit mock call expectations

PHP date() with timezone?

About Contact Privacy policy Terms and conditions