【发布时间】:2016-03-10 21:35:57
【问题描述】:
我有以下情况: 我想做一个这样的重定向系统:
/redirect/place1 -> /page.php?place=place1
/redirect/testabc -> /page.php?place=testabc
/redirect/xyzw123 -> /page.php?place=xyzw123
我现在能看到的唯一方法是在 /redirect 中创建具有重定向它的 index.php 的子文件夹。但我希望它是全自动的。
感谢您的任何回答!
【问题讨论】:
-
Apache 服务器? .htaccess 文件中的 301 重定向是可行的方法。
标签: html apache .htaccess redirect web