[导读]:RewriteEngine on RewriteCond %{HTTP_HOST} ^a.SEOwhy.com$ RewriteCond %{REQUEST_URI} !^/test/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /test/$1 RewriteCond %{HTTP_HOST} ^a.SEOwhy.co...
RewriteEngine on
RewriteCond %{HTTP_HOST} ^a.SEOwhy.com$
RewriteCond %{REQUEST_URI} !^/test/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /test/$1
RewriteCond %{HTTP_HOST} ^a.SEOwhy.com$
RewriteRule ^(/)?$ test//index.php [L]
利用.htaccess伪静态规则二级域名绑定二级目录,我想重定向二级域名at到test二级目录. 现在可以了,跳转后地址栏显示的是二级域名也没问题,但是二级目录上面的网页链接全部无法跳转打开, 无论怎么点击都是首页, 我这条应该怎么写? 是有什么问题吗?程序是PHP 求高手解答~~
RewriteRule ^(/)?$ test//[L]
这条含义是 此目录下的所有页面跳转到 test/
本文来自投稿,不代表微盟圈立场,如若转载,请注明出处:https://www.vm7.com/a/ask/39255.html