3 years ago (2016-11-07)  Algorithm language |   First to comment  5 
post score 0 times, average 0.0

I recently wrote an IP for the geographic location of the online API using PHP and java. Since I wanted to make my URL look more beautiful, I used the htaccess Rewrite syntax to rewrite the URL."The situation was finally solved. I would like to share it here: The effect I want to achieve is to

So it's easy to write the following rules:

And then it can't always achieve the relevant effect. The initial reason is that rewrite can't match QUERY_STRING with a question mark, and finally it succeeds with the following rules:

%{variable name} can get the requested parameter

 

This article has been printed on copyright and is protected by copyright laws. It must not be reproduced without permission.If you need to reprint, please contact the author or visit the copyright to obtain the authorization. If you feel that this article is useful to you, you can click the "Sponsoring Author" below to call the author!

Reprinted Note Source: Baiyuan's Blog>>https://wangbaiyuan.cn/en/htacess-rewriterule-contain-problem-of-draw-2.html

Post comment

Style

No Comment

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW