我想讓
localhost/ey3i
跳轉到
localhost/responseShortUrl.php?url=ey3i
怎麼寫.htaccess
[其中,ey3i是隨機的4到7位大小寫字母和數字]
在網上搜到一份
RewriteEngine On RewriteBase /
RewriteRule ^/(.*)$
responseShortUrl.php?url=$1[L]
但是不行,用不了
求大神指點
RewriteEngine On
RewriteRule ^(\w{4})$ responseShortUrl.php?url=$1 [L,NC]