• 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

How to MODIFY a Google Docs document via API using search-and-replace?

Laravel 5.1 how to use {{ old('') }} helper on blade file for radio inputs

Why getting "Build step 'Execute shell' marked build as failure" error while creating a backup tar for files

Laravel 4 Redirect::back() not going to previous page (refreshing current page)

Unsure why I am getting: Number of variables doesn't match number of parameters in prepared statement

Get all WooCommerce products within own plugin

display WooCommerce “Add to cart” button with short-code [add_to_cart ] dynamically

sort() not affecting original array while inside foreach loop

WooCommerce - unset "<product> removed notice…" on cart page

Form repeater send wrong data with last element in Laravel

Laravel database insert with combining array and string

sqlsrv_num_rows() expects parameter 1 to be resource, boolean given

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

Dynamic table in HTML using MySQL and php

How can I easily switch between PHP versions on Mac OSX?

About Contact Privacy policy Terms and conditions