• 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

Hide specific products from unlogged users based in product category in WooCommerce

Split array into 4-element chunks then implode into strings

Laravel - Browser displays message again when I press back button

Prestashop cUrl Login

Display the WooCommerce product price inside a custom function

storagelogs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

How to install php yaml on CentOs?

GRPC installed successfully on ubuntu but php is looking for it in another folder

how to pass row id in href of a tag in codeigniter controller?

How to fix 'Data has already been sent to output, unable to output PDF file' in MPDF

Laravel 8: Array to string conversion while calling route:list

Check if user online laravel

PHP only Hit Counter?

Add rows to Single product Additional information table in WooCommerce 3.6

Using array_intersect on a multi-dimensional array

About Contact Privacy policy Terms and conditions