How can I obtain the pseudo-static state of a second-level domain name (htaccess) for normal access to both domain names (same IP address, regular second-level domain name) domain.com & nbsp; & nbsp; what second.domain.com wants to implement is & nbsp; second. domain. comabc & nbsp; jump to & nbsp; s second-level domain name pseudo static how to get (htaccess)
Both domain names can be accessed normally (same IP address, regular second-level domain names)
Domain.com
Second.domain.com
What you want to achieve is
Second.domain.com/abc jump to second.domain.com? C = abc
. Htaccess is like this, now everything is normal
.............
RewriteRule ^ good $ test/good. php // domain.com/good normal access
RewriteCond % {HTTP_HOST} ^ second.domain.com $ [NC]
RewriteRule ^/(. *) $ /? C = $1 // second.domain.com/abc 404
Console output second.domain.com/abc 404 not found
What is the cause? Hope to answer
------ Solution ----------------------
Create a new. htaccess under the abc Directory
Then
RewriteRule ^/(. *) $ /? C = $1