【发布时间】:2017-02-23 06:24:10
【问题描述】:
这是index.php页面上的链接
<a href="specification.php?url=<?= $mbbelow['url']; ?>"><?= $mbbelow['brand_name']; ?><?= $mbbelow['title']; ?></a>
从此链接我进入页面 specification.php 那么这个url来http://www.themobilesapp.com/specification.php?url=Sony-Xperia-Z5-specifications-5246.php
在 url 的基础上,我找到了页面的所有数据。
我认为这个网址不合适。 在这里,我想从上面的 url 中删除 specification.php?url= 。 请以正确和完整的方式告诉我如何删除和制作这样的新网址 http://www.themobilesapp.com/Sony-Xperia-Z5-specifications-5246.php
我只需要 .htaccess 或者我还需要使用 php 代码来删除它。
我将在此处为您提供删除它所需的所有详细信息。
【问题讨论】:
标签: php .htaccess url url-rewriting