更改URL地址在PHP中简称 [英] Change URL Address make short in PHP
本文介绍了更改URL地址在PHP中简称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网址为:
localhost/ab/directory.php?id=200
id = 200是jenny id成员
id=200 is jenny id member
如何将其更改为
localhost/ab/jenny
可能吗?
谢谢
推荐答案
您将要使用mod_rewrite,这是apache中可用的模块。这将由您的Web目录中的.htaccess文件管理。 AddedBytes为初学者提供了有关URL重写的不错的教程。
You'll want to use mod_rewrite, a module available in apache. This will be managed by an .htaccess file within your web directory. AddedBytes has a nice tutorial for beginners on url-rewriting.
请参阅: http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/
这篇关于更改URL地址在PHP中简称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文