• 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

Auto increment id JSON

PHPS source file - 403 Forbidden You don't have permission to access this resource

Converting array to string and then back in PHP

Get WooCommerce products from specific category

How to get company posts from LinkedIn via API?

image source not readable

Add restriction to WooCommerce coupons by allowed user ID

MySQL default time format UTC or GMT?

Laravel Carbon throws error The format separator does not match

PHP usort() order in case of equality

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

Laravel 5 session not persisting after user is logged in

Change the alert text on add to cart action without selected variation in Woocommerce

I can't delete my image when it is liked because of the foreign key in mysql

Add and update products to session cart in Laravel

About Contact Privacy policy Terms and conditions