• 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'm trying to write a clean url for my website using the $_SERVER['REQUEST_URI'] in php

how to create html table in php

The "client_reference_id" argument is not passed

if statement inside concatenation

Handling expired token in Laravel

php script to delete files older than 24 hrs, deletes all files

PHP Deprecated issue when running artisan command

The sum of the user's points

Custom post type single page not working

Can't find vendor/autoload.php for Ratchet

How to change HTML structure inside WP <head>

How to give apache permission to write to home directory?

Debugging Stripe Webhook Event

Add New Parameter to Existing URL using htaccess

CodeIgniter extend CI_URI undefined method

About Contact Privacy policy Terms and conditions