• 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

Select option from dropdown menu with PHP and mySql

How to programmatically find public properties of a class from inside one of it's methods

image source not readable

HTML and PHP in one file

Unable to get password for the instance created from AMI

Best way to scrolldown onpageload

Could not decode a text frame as UTF-8.

Boolean assignment operators in PHP

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

how to identify the web server name of remote host

PHP: convert all UTF-8 characters to HTML entities

Why isn't my PHP exception working?

How to set time with DateTime modify?

Symfony redirect if already loggedin from login page

How to convert time from one timezone to another in PHP

About Contact Privacy policy Terms and conditions