我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

使用.htaccess和php从mysql字段创建一个SEO友好的URL

My website creates urls like the following: /index.php?placeid=27

I want to be able to change the url to display the place name, so something like: /southampton

where the placename is another database field displayed on the content of each page. I guess this requires some php and .htaccess solution which puts a variable into the url, but I can't seem to work this out from any similar questions on here. Thanks.

近期文章

  • 无法在打开的购物车中上传任何文件
  • 如何从单个输入字段上传codeigniter上的多个图像
  • 使用Dygraph在字符串值和其对应的整数值之间绘制图表
  • Laravel - 雄辩的物体和阵列夹头
  • PDO插入3个表格值到4个表格
  • Zf2分页获取所有记录
  • Blueimp文件多上传到Mysql
  • 将Google地址解析器发送到mysql插入0
  • PHP邮件没有发送返回的空白页面
  • 我只想上传TXT文件,最新消息?
  • 全新安装 - 在cart.php / admin.php上重定向循环
  • 表格中的奇怪问题
  • 在Yii2应用程序中使用文本
  • 如何安全地存储webserver密钥(Firebase,JavaScript,PHP)
  • joomla执行请求以查看joomla模板中的com_k2项
  • 现场服务器上的cURL非常慢,但在localhost上非常快
  • PHP / JQuery和HTML如何提交多个克隆表单
  • Laravel 5传递Form $请求作为控制器中的数组
  • 从表单获取GET数据的iFrame加载了错误的源代码
  • PHP日期参数与SQLSRV

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华