• 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

Laravel Carbon throws error The format separator does not match

How to modify CSS in a specific page of the WP admin dashboard (backend)

get data-value with variable value

Transpose and flatten two-dimensional indexed array where rows may not be of equal length

LARAVEL: How to fetch id dynamically in a query builder?

"properties should not be accessed directly" issue during WooCommerce 3.0 checkout

Implode array with array of glue strings

laravel automatically deletes server.php on php artisan serve

Star and Half Star Rating in Laravel

Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: ) in Unknown on line 0

Results page in other window

PHP cURL (SSL certificate problem: self signed certificate in certificate chain)

How to convert the int value to inch in PHP [closed]

php curl requesting twice

how to search for a file with php

About Contact Privacy policy Terms and conditions