happypeter / haoduoshipin

好多视频
http://haoduoshipin.com
236 stars 88 forks source link

bug #325

Closed happypeter closed 9 years ago

happypeter commented 9 years ago
  1. 点击"忘记密码"后,你的网站后台应该会发送一封邮件给用户注册邮箱,结果发现我的邮箱中:

这个还是'happycasts.net'

这个是小问题

  1. 就是修改密码链接的前缀:

注意到了吧,点击后发现‘404’ 直到我把前缀改成"haoduoshipin.com"才能正常打开修改成功

3.你的网站上显示:

haoduoshipin.com 域名正在备案,请大家暂时继续使用 happycasts.net

但是,现在已经404咯

  1. 还有个严重的bug....
happypeter commented 9 years ago

添加下面的代码到 happycasts.net/index.html

redirecting to haoduoshipin.com  ...

<script>
  window.location.replace("http://haoduoshipin.com");
</script>

就可以重定向到 haoduoshipin.com 了,但是 happycasts.net/episode/2 仍然是 404 啊,这意味着老的链接全部都失效了。

happypeter commented 9 years ago

https://www.digitalocean.com/community/tutorials/how-to-create-temporary-and-permanent-redirects-with-apache-and-nginx

这个方法貌似可以解决。

happypeter commented 9 years ago

happycasts.conf 里面这样写

server {
        listen 80;
        index index.html index.htm;
        server_name happycasts.net;
        return 301 $scheme://haoduoshipin.com$request_uri;
}

server {
        listen 80;
        index index.html index.htm;
        server_name www.happycasts.net;
        return 301 $scheme://haoduoshipin.com$request_uri;
}

happycasts.net/episodes/105 就可以重定向到 haoduoshipin.com/episodes/105 了

happypeter commented 9 years ago

https://github.com/happypeter/haoduoshipin/commit/80f6f9584bec51bd263ccd27500354ff9bc5e2d3

把所有的 happycasts 的字样都改成了 haoduoshipin.com