【发布时间】:2021-09-21 02:32:19
【问题描述】:
我现在拥有的是
https://www.example.com/link.php?link=48k4E8jrdh
我想要完成的是获取这个 URL =
https://www.example.com/48k4E8jrdh
我在网上看了但没有成功:(
有人可以帮我解释一下这是如何工作的吗?
这就是我现在所拥有的(我的方向是否正确?)
RewriteEngine On
RewriteRule ^([^/]*)$ /link.php?link=$1
【问题讨论】:
-
<a href="/'.$sub_row['user_id'].'">title</a>htaccessRewriteRule ^(.*)$ yourpage.php?q=$1 [L] -
“我的方向正确吗?” - 你试过了吗?
标签: regex apache .htaccess mod-rewrite url-rewriting