Mobile app version of vmapp.org
Login or Join
Gretchen104

: How to migrate my static html web site to Blogger? I decided to migrate to blogger. I used to have pages like www.mysite.com/page.html, but Blogger pages are now like www.mysite.com/p/page.html

@Gretchen104

Posted in: #Blogger #Migration #Url

I decided to migrate to blogger.

I used to have pages like mysite.com/page.html, but Blogger pages are now like mysite.com/p/page.html
When people use the old link which is posted on the forums, they get a 404 error. How can I prevent that?

There's no way to customize URLs in Blogger.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gretchen104

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gonzalez347

You should redirect the pages on the old site to the new addresses. On the old site, create a file called .htaccess in the root and fill it with entries like this:

Redirect 301 /page.html www.newsite.com/p/page.html

If the file names are the same on both sites, you can avoid typing lots of Redirect rules and do it like this:

RewriteEngine On
RewriteRule ^(.*)$ www.newsite.com/p/ [R=301,L]


This will make all www.oldsite.com/page.html links point to www.newsite.com/p/page.html.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme