• 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

AJAX call fails with SyntaxError: Unexpected end of JSON input

Symfony redirect if already loggedin from login page

Message: Set sys_temp_dir in your php.ini after installed composer

How to validate tin and cst using PHP?

Add a custom text for a particular product on specific email notification in Woocommerce

PHP: How to quickly split a key=value file into associative array

image source not readable

Laravel : How to Create Dropdown to Select FOREIGN KEY from Other Table?

XML to CSV with PHP converter [problem with images grabing]

PHP array stringify

PHP how to detect if running on arm64 cpu?

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

Error converting docx to pdf using Unoconv

Sum array values of a column within each column of an array with 3 levels

codeigniter 4 running error first time with xampp

About Contact Privacy policy Terms and conditions