Home  >  Article  >  Backend Development  >  关于服务器的 rewrite解决思路

关于服务器的 rewrite解决思路

WBOY
WBOYOriginal
2016-06-13 13:15:49868browse

关于服务器的 rewrite

大概是写一个正则,
www.test.com/281跳转到 www.test.com/test/2/8/1/test.php

前者讲究简单,后者是目录,考虑到以后很多文件,所以才这样做 12年8月1号
请教个有没有更好的办法
另外如果按我这种方式做,有没有办法实现跳转后的域名更加简单,例如www.test.com/test/2-8-1 之类的
发现一些大网站的网址看起来都很顺眼,是如何实现的。。

------解决方案--------------------
可以用ID序号然后加上字符串.后缀名就可以了

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