• 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

SendGrid: Sending an email to multiple recipients without other emails being shown on the "to" field

Facebook SDK error: Cross-site request forgery validation failed. Required param "state" missing from persistent data

backup files to google drive using PHP

Undefined variable in Laravel 8 project (php 7.4)

cakephp save drag and drop list order to database

phpseclib 2.0 can not use Composer to create autoload

Display a success custom notice after Placing an Order in WooCommerce

How can I convert from a{a{} b{}} to a[a[],b[]] using php preg_match?

XSS attack still works despite htmlspecialchars() doing its work

How in Laravel run JavaScript code stored in php variable?

Make certain characters of a word from string bold

Add New Parameter to Existing URL using htaccess

How to get the ID of the link in another page in php

WHM Enabling mod_rewrite

Webscraping Symfony/Panther: Can't get HTML

About Contact Privacy policy Terms and conditions