URL Rewrite index.php?domain=domain.com to /domain.com



我有.hta访问这个

Options +FollowSymlinks 
RewriteEngine On
RewriteRule ^([^/.]+)$ index.php?domain=$1 

如果url domain.com/goo显示结果,但如果没有找到url domain.com/go.gl,怎么了?

我无法理解您试图在匹配字符串中删除的当前规则".",即使该规则不正确。请尝试下面的内容,我们正在完全匹配字符串,不留下任何内容。

Options +FollowSymlinks 
RewriteEngine On
RewriteRule ^(.+)$ index.php?domain=$1

相关内容