• 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

Coinpayments create_transaction "ERROR: Invalid command!"

PHPSpreadsheet - How Do I Use Auto Migration Tool

shell errors running php exec

How to send parameters in soap request in php in __soapcall() function

How to downgrade or install a specific version of Composer?

Any AWS EB Laravel route getting 404 Not Found nginx/1.16.1

PHP rotate matrix counter-clockwise

php curl_exec() Connection refused when retrieving a remote image

yii2 and mssql insert varbinary into model

How can I format this number correctly using PHP?

Return new collection without modifying original collection

How to change HTML structure inside WP <head>

I want to store data in new index as per my key in php [duplicate]

The "client_reference_id" argument is not passed

Cannot retrieve error message using Symfony HttpClient if the response is not "ok"

About Contact Privacy policy Terms and conditions