我正在尝试在我的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
Run Code Online (Sandbox Code Playgroud)
至
1. http://example.com/videos/play.php?title=google-io-2009-wave-intro
2. http://example.com/videos/play.php?id=203
Run Code Online (Sandbox Code Playgroud)
请告诉我如何以上述任何方式实现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
Run Code Online (Sandbox Code Playgroud)