• 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

error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

Target class controller does not exist - Laravel 8

How to change product Image when variables are selected in Shop and Archive Pages?

Must be of the type array, null given,

Don't show recurring price for WooCommerce subscriptions worth 0$

How to properly start Laravel 8 with Bootstrap & authentication

Can't exclude directories from .htaccess mobile redirect?

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

Send Outlook 2010 email using PHP

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource [duplicate]

Laravel Mix Uncaught ReferenceError: $ is not defined

The sum of the user's points

Query Optimization, changing the queries in the loop into a single processing query

How to install ZeroMQ for PHP on an Alpine Linux container?

Laravel - How to properly generate unique slugs from article titles?

About Contact Privacy policy Terms and conditions