如何在删除“/”之后删除地址? 改变它:
google.pl/urlTodel/how-remove-adress
到此:
google.pl/how-remove-adress
我希望在htaccess
中将urlTodel作为par1现在我用这段代码得到了par1:
RewriteRule ^([a-zA-Z0-9-_\.]+)$ /index.php?par1=$1
实施例
google.pl/urlTodel/how-remove-adress
$_GET['par1'] is urlTodel