This blog is about the development of my various Linux based web sites, starting with raspberrywebserver.com, Banoffee Pi Server and Linux Web Servers.
I've changed the domain name of my site
Posted 07-15-2013 at 05:53 AM by Pyplate
I was using a free domain name supplied by noip.com, the dynamic DNS provider that I use. This looked unprofessional, and it was hurting my search engine ranking.
I bought a new domain name, and instead of using a dynamic DNS service, I just pointed it to my external IP. My ISP is known for hardly ever changing people's IP address. It's a risk to not use a dynamic DNS service, but I think it's a small risk.
My site currently uses a CMS that I've written myself. I use .htaccess files to do URL translation, so I added a couple of lines to my htaccess file:
Now, when people visit my old domain name, they're redirected to the new one. They see the same site, just at a new domain name.
I created a new web property in Google analytics, and put the new tracking code in my site template's head section. I created a new site in webmaster tools, and re-verified it with the new Google analytics code. I changed the URLs in my sitemap.xml, and submitted it in webmaster tools.
I bought a new domain name, and instead of using a dynamic DNS service, I just pointed it to my external IP. My ISP is known for hardly ever changing people's IP address. It's a risk to not use a dynamic DNS service, but I think it's a small risk.
My site currently uses a CMS that I've written myself. I use .htaccess files to do URL translation, so I added a couple of lines to my htaccess file:
Code:
# rewrite rules for 301 redirect RewriteCond %{HTTP_HOST} ^myraspberrypi.no-ip.biz/*$ RewriteRule ^(.*)$ http://raspberrywebserver.com/$1 [R=301,L]
I created a new web property in Google analytics, and put the new tracking code in my site template's head section. I created a new site in webmaster tools, and re-verified it with the new Google analytics code. I changed the URLs in my sitemap.xml, and submitted it in webmaster tools.
Total Comments 0