php - Query Strings & Mod ReWrite -


I'm not very naïve with the rewrite (although not the master), so I used to hope somone was able to help May be me

  rewrite ^ $ index.php? Page = home [nc] rewriting rule ^ ed $ index.php? Page = adm_home [nc] rewritable ^ ed / statistics index.php? Page = adm_stats [NC]  

Above is a snippet of my .htaccess file. As you can see, when a person encounters a tour, is it actually index.php? Page = Calls at home, similarly if someone goes to them, then still within the "adorer" index.php? Page = adm_home will be called.

Do I want to get it: I want to be able to display alerts on my pages, and to do this, I just be able to add alert = n (where n is a number) Want to redirect and redirect as an index .php? Page = home & amp; Alert = n

However, I can not understand how this can be done, regex is confusing me asking for your help.

You can set the origin of the requested query string in the new one:

  rewrite ^ $ index.php? Page = home [L, QSA] Reiter rules ^ ed $ index.php? Page = adm_home [L, QSA] rewritable ^ ed / statistics $ index.php? Page = adm_stats [L, QSA]  

Comments