index.php 上一个 GET 变量的 .htaccess 重写规则?
.htaccess rewrite rule for one GET variables on index.php?
.htaccess 重写一个 GET 变量的规则 index.php?
我知道 2 个变量的工作原理
RewriteRule ^(.*)/(.*)$ /index.php?var1=&var2= [NC,L]
.htaccess rewrite rule for two GET variables on index.php?
怎么就一个??? index.php?var1=$1
使用这个 .htaccess:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ index.php?var1= [L]
.htaccess 重写一个 GET 变量的规则 index.php?
我知道 2 个变量的工作原理
RewriteRule ^(.*)/(.*)$ /index.php?var1=&var2= [NC,L]
.htaccess rewrite rule for two GET variables on index.php?
怎么就一个??? index.php?var1=$1
使用这个 .htaccess:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ index.php?var1= [L]