Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无法弄清楚这个的 .htaccess 代码:/
如果使用子域“l”,它应该像标题中提到的那样重定向
同样在浏览器中,url 仍应显示为 l.domain.com/TARGETID
尝试将其放入文档根目录的 htaccess 文件中:
RewriteEngine On RewriteCond %{HTTP_HOST} ^l\.domain\.com$ [NC] RewriteCond %{REQUEST_URI} !^/redirect RewriteRule ^(.*)$ /redirect?target=$1 [L,QSA]