#根目录：

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?domain=$1 [L]


#多级目录,请在程序index.php同级目录内新建.htaccess文件，并修改对应位置：

RewriteEngine On
RewriteBase /多级目录/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?domain=$1 [L]