您好用户我基本上想要改变链接的结构。动态更改链接结构
我使用<?= $_GET['content'] ?>
来捕捉内容项目。
下面列出的代码是我尝试使用的。
RewriteEngine On
RewriteBase/
RewriteCond
RewriteRule ^/$ live.php?content=$2 [L]
但它不起作用。
例如,
老 - > domain.com/live.php?content=username
新 - > domain.com/username
第二组($ 2')从哪里来? –
谢谢sharkeen作品完美:) –