w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
mod rewrite: Rewrite rule mach slashes and change them to get variables

Add QSA flag:

RewriteRule ^(.*)$ /mysite/index.php?r=$1 [L,QSA]
  • QSA stands for Query String Append which make sure to preserve existing query string while adding new query parameters.

Reference: Apache mod_rewrite Introduction

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.