• 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

merging two arrays with specified index

Log a user out of a website when they put their computer to sleep

How can i update or reset my password without entering email field in laravel-8?

How to skip cart page on woocomerce for certain products only?

Shortcode or PHP inside a shortcode in Wordpress

How to create a video stream from a single dynamic image in PHP

I want to display default profile image if user do not have profile image

how to check version of codeigniter framework?

(Cache::lock()) -> get() -- Under what conditions does it return false?

PHP contact form configuration [duplicate]

php mysql + create a friend request system

User pool client {id}does not exist

how to retrieve the first and last instance of a row in pdo dataset

Access denied for user 'homestead'@'localhost' (using password: YES)

I want to display a sweetalert after the inserting of data in my database

About Contact Privacy policy Terms and conditions