更新时间:2023-02-23 12:46:09
您可以把这个code。在 /qs/.htaccess
You can put this code in /qs/.htaccess
RewriteEngine On
RewriteBase /qs/
RewriteRule ^([^/]+)/(\d+)/([^/]+)$ $1.php?var1=$2&var2=$3 [NC,L]
现在,你可以去的http://本地主机/ QS / QS1 / 12345678 /塞文测试目的只
,你会得到同样的内容 /qs/qs1.php?var1=12345678&var2=slug-text-testing-purpose-only
Now, you can go to http://localhost/qs/qs1/12345678/slug-text-testing-purpose-only
and you'll get the same content as /qs/qs1.php?var1=12345678&var2=slug-text-testing-purpose-only