• 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

hidden INPUT value not available in $_POST

Move a child array to parent array and change parent/child name

Reducing authentication calls on external API (Laravel 5.6)

What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

HTTP Range requests with php for Video Embedding for solving going to specific time in video (seek bar not work)

Create tags in laravel post publishing

How can i hide dt if dd got empty value

How to make dot match newline characters using regular expressions

Woocommerce redirect after add-to-cart error

Telegram bot doesn't answer

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null

Target Individual Form Instance/Counter Inside A PHP While Loop

Substitute integers and dots with regex [duplicate]

Symfony/Form add attribute based on the data

How to test laravel controller method?

About Contact Privacy policy Terms and conditions