0

I have a blog that I'm trying to redirect to a different domain.

  • Old domain: http://harrisonfjord.com
  • New domain: http://agoodman.com/blog/

Google states that you should do 301 redirection for all pages, so I took a list of urls from my XML sitemap and just manually set up the redirection.

Here's what I've put in my .htaccess file: http://pastebin.com/PkKNbJKf

The file structure is the same across both domains, so I can simply redirect each page as follows:

redirect 301 http://harrisonfjord.com/ http://agoodman.com.au

redirect 301 http://harrisonfjord.com/whatever http://agoodman.com.au/blog/whatever

However, this currently isn't working. Do I need to put the redirection in an tag or something?

4

1 回答 1

1

如果您将旧域完全重定向到新域怎么办?

# redirect an entire site via 301
redirect 301 / http://agoodman.com/blog/

也尝试使用RewriteEngine

RewriteEngine On
RewriteRule ^(.*)$ http://agoodman.com/blog/$1 [R=301,L]
于 2012-08-08T04:45:07.233 回答