• 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

I want to display a sweetalert after the inserting of data in my database

Laravel no logout option from menu after successfull login

How can i call a function that executes an fpdf based on the choice of a form selector?

How do I get friend list from Friends table with counts of friends of my friends

Laravel Unknown Column 'updated_at'

PHP Print to Network Printer

How to to send mail using gmail in Laravel?

How to delete old images from public folder on update using Laravel

Composer Warning: openssl extension is missing. How to enable in WAMP

Store multiple fields in JSON column (Nova CMS)

Submitting a form with ajax in Wordpress

PHP DOTENV unable to load env vars

how do i retrieve and display the alt text of an image in wordpress?

Laravel whole batch is cancelled if one Job fails

Laravel set default language not working

About Contact Privacy policy Terms and conditions