Home  >  Article  >  Backend Development  >  PHP某些框架的URL是space-mtag-tagid-12.html 这样的形式的,那底层是如何获取参数的?

PHP某些框架的URL是space-mtag-tagid-12.html 这样的形式的,那底层是如何获取参数的?

WBOY
WBOYOriginal
2016-06-06 20:35:04999browse

PHP某些框架的URL是space-mtag-tagid-12.html 这样的形式的,那底层是如何获取参数的?
比如我要获取tagid为12的参数,PHP底层该如何写呢?

回复内容:

PHP某些框架的URL是space-mtag-tagid-12.html 这样的形式的,那底层是如何获取参数的?
比如我要获取tagid为12的参数,PHP底层该如何写呢?

关掉伪静态你就看到了

路径名alias,实际中可将alias转换为实际地址,然后获取参数。

服务器rewrite或者框架自定义的路由

服务器url重写或框架实现了路由功能,底层你该怎么写怎么写

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn