【发布时间】:2010-11-05 14:23:25
【问题描述】:
我正在尝试在我的 PHP 应用程序中实现 URL 重写。有人可以分享在PHP和MySQL中实现URL重写的分步过程吗?
在我的应用程序中,我想实现以下 URL 重写,我想重定向
1. http://example.com/videos/play/google-io-2009-wave-intro
2. http://example.com/videos/play/203/google-io-2009-wave-intro
到
1. http://example.com/videos/play.php?title=google-io-2009-wave-intro
2. http://example.com/videos/play.php?id=203
请告诉我如何以上述任何方式实现 URL 重写。
从以下两种类型中,根据SEO、管理、应用程序的观点,哪个URL最好。
1. http://example.com/videos/play/google-io-2009-wave-intro
2. http://example.com/videos/play/203/google-io-2009-wave-intro
【问题讨论】:
标签: php apache mod-rewrite seo url-rewriting