.htaccess - Apache rewrite to save Get parameters -


I have a script to render many catalogs ( /home/catalogues.php ) is . To rewrite the next relay rule and re-submit those catalogs correctly,

  rewrite rules / supplies / Catalog catalog.php? $ 1 rewrite rule ^ / hardware list Php? $ 1  

So when I'm getting such a URL

  / supply / cartridge / brand% 5b% 5d = HP and brand% 5b % 5D = HP and type% 5b% 5D = Mono and page = 2  

GET parameter is empty. It is determined that when form actions are directly / home / catalogues Redirects to php, but it breaks the connection of one page and the connection to DB because the tablaanum passes through the url, it seems that A very simple question.

You should add a query string after the rule: [ksa]

example:

  rewrite ^ supply /.* catalogs.php? $ 1 [QSA] Rewrite Rule ^ Hardware /.* Catalog Php? $ 1 [QSA]  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -