• 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

Object of class stdClass could not be converted to string error

How to programmatically find public properties of a class from inside one of it's methods

How to convert time from one timezone to another in PHP

Required field only if another field has a value, must be empty otherwise

WHM Enabling mod_rewrite

Convert string to lowercase AND then convert it to its original form in PHP, is it possible?

Handling expired token in Laravel

Google Gmail API - How to login programatically?

Need to display only array value in JSON output

Correct way to use LIKE '%{$var}%' with prepared statements?

yii2 and mssql insert varbinary into model

How do I remove this delivery notification from here?

Dynamic dropdown Ajax PHP request

Display specific shipping method if woocommerce product has specific acf field value

How to get transaction details in notify_url page in paypal

About Contact Privacy policy Terms and conditions