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

如何创建漂亮的虚拟URL而不是绝对URL? [重复]

This question already has an answer here:

  • Reference: mod_rewrite, URL rewriting and “pretty links” explained 4 answers

I want to use the slash / in a link like:

Example.com/article/news/

But article and news are not directories in the web root, it's just a virtual link.

How to create a link like that?

</div>

add the 'http://' infront of the site

近期文章

  • PHP会话新手,错误[重复]
  • substr函数如何工作? [关闭]
  • 语法是什么[关闭]
  • php存储数组中的变量? [关闭]
  • 变量的差异[关闭]
  • PHP和SQL不起作用?
  • 我该如何修剪我的网址
  • 手机验证器
  • 错误:mysqli_fetch_object()期望参数1为mysqli_result
  • 使用PHP回显没有空格的字符串
  • 不受保护的mysql查询总是受到关注吗? [关闭]
  • 在php中返回Integer而不是boolean
  • Php foreach循环键打印特定值[关闭]
  • 是否可以删除php或jquery中的<img>中的<a>而不直接在php中删除<a>?
  • PHP - 标题错误[重复]
  • 使用php [关闭]从网页上的数据库显示信息
  • 未定义的索引(PHP)
  • 尝试使用mysql结果集在while循环中构建数组的PHP语法错误[关闭]
  • PHP连接错误[关闭]
  • 拆分php数组[关闭]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华