how can I redirect all of the subdomains to a URL this is the scenario :
abc.xxx.com goes to abc.xxx.com/index.php?id=abc www.xxx.com/abc or xxx.com/abc also goes to the same URL: abc.xxx.com/index.php?id=abc
and please bear in mind there is no /abc folder on the website
and the file index.php is the root file of the main domain
I want to keep the abc in the subdomain for SEO purpose.
Thanks in advance.
我认为您必须首先检查URL是否不包含“ index.php?id =”以防止无限循环。
RewriteCond %{REQUEST_URI} !index\.php\?id= [NC]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.