• 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

"Unable to load dynamic library 'pdo_sqlsrv.so' "Cenos7 PHP7.2.10

Session timeout in Yii2

How to install LDAP in Docker php-fpm alpine

run a query using EXECUTE BLOCK to prepair a column for an unique-Index

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

file_put_content...fail to open stream:Permission denied in Laravel 5

Check if my GET request has Header: Token

advanced custom fields wordpress custom class

echo language construct is discouraged. (PHP)

How to MODIFY a Google Docs document via API using search-and-replace?

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

Form repeater send wrong data with last element in Laravel

Transfer data between JavaScript and PHP through JSON

unable to load your default controller on Codeigniter

Laravel views are showing from cache on one server but works fine on other server

About Contact Privacy policy Terms and conditions