1. 论坛系统升级为Xenforo,欢迎大家测试!
    Dismiss Notice

rewrite 的 PHP 代码如何写?

Discussion in '后端开发' started by teamplay, Dec 9, 2005.

  1. teamplay

    teamplay New Member

    Joined:
    Dec 9, 2005
    Messages:
    1
    Likes Received:
    0
    我已经把.htaccess配置好了,但是如何才能让页面中的链接变成动态更换的?
    例如:
    我关闭.htaccess后,链接恢复为news.php?id=1,打开后,又变成news/1.html

    我看了很多例子,除了.htaccess中配置好以外,php代码中都有相关应用,请问该如何写?
     
  2. spencer

    spencer New Member

    Joined:
    Nov 27, 2005
    Messages:
    33
    Likes Received:
    0
    PHP代码中不用做特殊处理了。