• 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

Shopify password update using Shopify API

How to get values inside <![CDATA[values]] > using php DOM?

Chunk and transpose a flat array into rows with a specific number of columns

Sentry on Symfony: how to exclude `NotFoundHttpException`

How do I upload a laravel project on cPanel shared hosting?

Failing validation doesn't stop code execution in livewire component

Laravel 4 Redirect::back() not going to previous page (refreshing current page)

Cant seem to get the Pagination to work on my WooCommerce REST API application?

Warning: mysqli_stmt::bind_param(): Number of elements in type definition string doesn't match number of bind variables 11 [closed]

phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO)

How to test a php login connected to a mysql db through xampp?

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

Return multiple values from a function using mysqli_fetch_assoc [closed]

Coinpayments create_transaction "ERROR: Invalid command!"

Why does using salted hash on python and php give me different results?

About Contact Privacy policy Terms and conditions