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

我如何使用.htacces重写引擎

I would like to improve my site by using the page title instead of the php get method.

What do I need to write in .htacces if i would convert /index.php?id=1 to /page

RewriteRule ^page$ /index.php?id=1 [L]

if you want to rewrite every index.php?id=ID_HERE use this:

RewriteRule ^page/([^/]*)$ /index.php?id=$1 [L]

近期文章

  • 禁用jQuery UI日期选择器日期
  • Jquery表中未定义的索引/值
  • 来自php的Android动态图库gridview
  • 我的SQL查询没有给出任何结果
  • angularjs + php + mysql(实时搜索)工作缓慢
  • PHP:PDO fetch()不从数据库返回任何内容
  • 在脚本编程期间PHP脚本挂起
  • PHP OpenLog不会记录到特定的Facility
  • 如何获得有意义的Laravel错误?
  • php执行python脚本并在会话中保存输出
  • PHP Web Service将HTML字符作为实体返回
  • fopen()没有返回资源
  • 基于ip管理zend中的多语言站点
  • Laravel在作曲家更新模型方法之后调用undefined
  • 从php中动态创建的html表访问数据
  • Yii:javascript的参数化调用 - 引号问题
  • 带标题授权的file_get_contents https
  • 如何针对我服务器上的资源优化PHP中的多线程
  • 管理面板中的Joomla 404错误
  • 类不输出

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华