• 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

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

PHP Startup Unable to load dynamic library /usr/lib/php/20151012/php_mysqli.dll

PHP header location absolute URL

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

enroll_table three field fetch to payment form to create payment field in laravel 5.5

How to pass security cloudflare server with php curl

Magento 2 - Controller returning blank page

Unable to match results of php hash_hmac() and coldfusion hmac()

I need to link Google Sheet with my Laravel

How to make Canonicals with PHP

User pool client {id}does not exist

Send same name multiple checkbox values via ajax

Display a success custom notice after Placing an Order in WooCommerce

Laravel Command Schedule Not Working Properly

XDebug not working in VScode for php debugging

About Contact Privacy policy Terms and conditions