• 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

Why the name of trucks are same in 2nd and 3rd record of company data retrieval?

PHP Form Not Inserting

How to display MySQL table using php and edit it in a web browser

Assets not referencing to public folder (Laravel)

Filter array by skipping every nth element from the end

How to redirect to another page after n seconds in wordpress without using javascript?

Hide email address with stars (*)

mysql_result is defined but mysql_free_result warns it expected a resource

GuzzleHttp Hangs When Using Localhost

Symfony autowiring issues since docker update

Split a string array into pieces

Google API Heatmap Layer exception, why?

How to show selected value using javascript in laravel

Connecting an HTML webpage to a SQL Server

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

About Contact Privacy policy Terms and conditions