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

没有扩展名的PHP链接[重复]

This question already has an answer here:

  • Remove .php extension with .htaccess 13 answers

How I can change link from

www.example.com/index.php?id=123&g=123

to

www.example.com/index/id/123/g/123

?

Thank you :)

Edit: Please don't tell me "use mod rewrite", tell me how to use it :D

</div>

You want to use URL Rewriting. See this article to accomplish that:

http://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/

You can do a mod rewrite (change .htaccess file)

近期文章

  • 无法隐藏显示内容的空白区域 - Wordpress Sydney主题[关闭]
  • Ip限制与.htaccess [关闭]
  • file_get_contents不起作用[关闭]
  • 我的代码有什么问题? [关闭]
  • 选择以1小时结束的所有行[关闭]
  • PHP注册用户名更改[关闭]
  • PHP从表中选择不起作用
  • php在不同页面上的一个变量[关闭]
  • 怎么做:example.com/users/user1 [关闭]
  • 什么PHP脚本将执行此功能:[关闭]
  • 删除双引号之间的 - PHP [关闭]
  • 如何在php的select选项中添加复选框?
  • PHP简写跳过变量赋值
  • 检查可用性并列出可用房间[关闭]
  • 从JSON数组中获取新的JSON数组[关闭]
  • 使用facebook连接授权或登录您的网站[关闭]
  • mysql_result()期望参数1是资源,布尔给定[重复]
  • 使用php 5.0将xml上传到Mysql数据库[关闭]
  • 如何编辑我的代码以从XML的开头保存到mySQL?
  • 将php转换为c#,curl转换为.net [关闭]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华