raksmart活动促销

分享

写回答

发帖

[提问] 域名老是自动跳转是怎么回事?

回答|共 23 个

boro

发表于 2010-2-25 16:50:58 | 显示全部楼层

wordpress吧,你在wordpress后台设置里头设置的域名和你访问的一致么

LeXeR

发表于 2010-2-25 17:04:10 | 显示全部楼层

header.php没什么问题啊


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><?php wp_headers();?>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />

<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />

<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php wp_get_archives('type=monthly&format=link'); ?>

<?php //comments_popup_script(); // off by default ?>

<?php if (is_single() and ('open' == $post-> comment_status) or ('comment' == $post-> comment_type) ) { ?>

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/prototype.js.php"></script>

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/effects.js.php"></script>

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ajax_comments.js"></script> <?php } ?>

<?php wp_head(); ?>

<?php get_heads();?>

</head>

<body>

<!-- wrapper start -->

<div id="wrapper"><div id="bottom_frame"><div id="top_frame">

<!-- header start -->

        <div id="header">

                <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>

                <h2><?php bloginfo('description'); ?></h2>

                <div id="rss"><a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/spacer.gif" width="43" height="40" alt="RSS" /></a></div>

                <div id="menu">

                        <ul>

                                <li><a href="<?php bloginfo('url'); ?>">首页</a></li>

                                <li><?php wp_list_categories('style=none&include=5'); ?></li>

                                <?php wp_list_pages('title_li=&sort_column=post_title&depth=1'); ?>

                        </ul>

                </div>

        </div>

<!-- header end -->
RAKSmart

LeXeR

发表于 2010-2-25 17:08:50 | 显示全部楼层

之前我在根目录写过一个.htaccess
redirect permanent /  http://yyll1314.com/blog/
跟这个有关吗

一路同行

发表于 2010-2-25 17:20:39 | 显示全部楼层

这个是转向到 http://yyll1314.com/blog/的
删掉试试看吧

KaoN

发表于 2010-2-25 17:35:54 | 显示全部楼层

已经删过了

天毅

发表于 2010-2-25 19:33:00 | 显示全部楼层

原帖由 LeXeR 于 2010-2-25 05:08 PM 发表
跟这个有关吗

这个是跳转到http://yyll1314.com/blog/
不是跳转到另外一个地址的啊?

另外,如果是后台设置地址不正确,就不应该是301的文件头了,应该是200的文件头……

所以应该还是301自动转向代码

[ 本帖最后由 天毅 于 2010-2-25 07:34 PM 编辑 ]

天毅

发表于 2010-2-25 23:01:31 | 显示全部楼层

删了这个就好了?!
这个的问题?这里的代码是跳转到http://yyll1314.com/blog/的啊?

LeXeR

发表于 2010-3-2 10:34:01 | 显示全部楼层

我发现是这样的
yyll1314.com/blog   这样会跳转
yyll1314.com/blog/  这样不会跳转

卡卡

发表于 2010-3-8 22:07:06 | 显示全部楼层

这几天突然也发现这个问题,求解决方案。

一路同行

发表于 2010-3-9 09:04:56 | 显示全部楼层

也是wordpress?上面的方法都是过了吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则

HostMonster讨论

HostMonster
优惠码:优惠链接
介绍:HostMonster美国主机商成立于1996年,总部位于犹他州普罗沃,提供主机托管服务,在业内有比较有实力,而且口碑也不错。HostMonster美国主机性价比较高,而且基本不会额外收取费用,其无限型方案支持无限磁盘空间,无限带宽和电子邮件帐户,提供免费域名1个。
查看更多

LeXeR

发表主题