我的网站地址是:[http://Luxtext.life] 它是一个博客服务。 我想将例如amir.luxtext.life重定向到luxtext.life/?s=amir 这是我的htaccess文件代码:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.luxtext\.life [NC]
RewriteCond %{HTTP_HOST} ^([a-zA-Z0-9]+)\.luxtext\.life
RewriteRule (.*) user.php?s=%1&t=29&u=11&v=66 [L,QSA]
RewriteCond %{HTTP_HOST} !^www\.luxtext\.life [NC]
RewriteCond %{HTTP_HOST} ^www\.([a-zA-Z0-9]+)\.luxtext\.life
RewriteRule (.*) user.php?s=%1&t=29&u=11&v=66 [L,QSA]
RewriteRule ^(.*)/post([a-zA-z0-9]+).php?$ /post.php?id=$1&p=$2
RewriteRule ^(.*)/post-([a-zA-z0-9]+).php?$ /post.php?id=$1&p=$2
RewriteRule ^(.*)/post_([a-zA-z0-9]+).php?$ /post.php?id=$1&p=$2
RewriteRule ^(.*)/page([^/]+).php?$ /page.php?id=$1&b=$2
RewriteRule ^(.*)/page-([^/]+).php?$ /page.php?id=$1&b=$2
RewriteRule ^(.*)/page_([^/]+).php?$ /page.php?id=$1&b=$2
RewriteRule ^([a-zA-z0-9]+)/post([a-zA-z0-9]+).php?$ /post.php?id=$1&p=$2
RewriteRule ^([a-zA-z0-9]+)/post-([a-zA-z0-9]+).php?$ /post.php?id=$1&p=$2
RewriteRule ^([a-zA-z0-9]+)/post_([a-zA-z0-9]+).php?$ /post.php?id=$1&p=$2
RewriteRule ^([a-zA-z0-9]+)/page([^/]+).php?$ /page.php?id=$1&b=$2
RewriteRule ^([a-zA-z0-9]+)/page-([^/]+).php?$ /page.php?id=$1&b=$2
RewriteRule ^([a-zA-z0-9]+)/page_([^/]+).php?$ /page.php?id=$1&b=$2
但它没有说话。 我的通配符打开,mu主机是Cpanel。感谢。