duanan5940 2014-07-09 11:08
浏览 25

使用地址栏内容重定向html页面

I'm looking to achieve similar functionality on my site as facebook does for its pages section. Basically I want users to be able to navigate to:

www.mysite.com/school123

Then behind the scenes I would be able to locate 'school123' using URL with PHP, then I can find the correct path in the database and redirect to the correct path (example: www.mysite.com/pages/schools/school123/index.php ). Problem is as the page doesn't exist I get a 404 error.

My question is should I look at modifying the 404 page to do the DB lookup & redirect my page or is there a better way of doing this?

Thank you in advance

  • 写回答

3条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 r包runway详细安装教程
  • ¥15 Html中读取Json文件中数据并制作表格
  • ¥15 谁有RH342练习环境
  • ¥15 STM32F407 DMA中断问题
  • ¥15 uniapp连接阿里云无法发布消息和订阅
  • ¥25 麦当劳点餐系统代码纠错
  • ¥15 轮班监督委员会问题。
  • ¥20 关于变压器的具体案例分析
  • ¥15 生成的QRCode圖片加上下載按鈕
  • ¥15 板材切割优化算法,数学建模,python,lingo