Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs > Pyplate
User Name


This blog is about the development of my various Linux based web sites, starting with, Banoffee Pi Server and Linux Web Servers.
Rate this Entry

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, 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:

# rewrite rules for 301 redirect
RewriteCond %{HTTP_HOST} ^*$
RewriteRule ^(.*)$$1 [R=301,L]
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.
Posted in Uncategorized
Views 848 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 06:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration