301后,此网页包含重定向循环
.htaccess 文件如下:
原来正常的,加上301这2行后,出现“此网页包含重定向循环”
RewriteCond %{HTTP_HOST} !^baidu.com$ [NC]
RewriteRule ^(.*)$ http://www.baidu.com/$1 [L,R=301]
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^baidu.com$ [NC]
RewriteRule ^(.*)$ http://www.baidu.com/$1 [L,R=301]
RewriteRule ^about.html$ /home/about.php
RewriteRule ^contact.html$ /home/contact.php
RewriteRule ^news.html$ /home/news_list.php原来正常的,加上301这2行后,出现“此网页包含重定向循环”
RewriteCond %{HTTP_HOST} !^baidu.com$ [NC]
RewriteRule ^(.*)$ http://www.baidu.com/$1 [L,R=301]
...全文
相关推荐
301reading-notes
301阅读笔记 名称 关联 阅读01 阅读02
php获取301跳转URL简单实例
复制代码 代码如下:/** * get_redirect_url() * Gets the address that the provided URL redirects to, * or FALSE if there’s no redirect. * * @param string $url * @return string */function get_redirect_url($url){ $redirect_url = null; $url_parts = @parse_url($url); if (!$url_parts) return false; if
站长 IIS7的404和301二次修改
NULL 博文链接:https://onestopweb.iteye.com/blog/2303352
重定向:重定向到网站
重新导向 重定向到网站
PHP实现获取当前链接地址的301或者302跳转之后的真实链接地址.zip
PHP实现获取当前链接地址的301或者302跳转之后的真实链接地址.zip


基础编程
