LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Blogs > Pyplate
User Name
Password

Notices

This blog is about the development of my various Linux based web sites, starting with raspberrywebserver.com, Banoffee Pi Server and Pyplate Python SQlite CMS.
Rate this Entry

I've changed the domain name of my site

Posted 07-15-2013 at 06: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:

Code:
# rewrite rules for 301 redirect
RewriteCond %{HTTP_HOST} ^myraspberrypi.no-ip.biz/*$
RewriteRule ^(.*)$ http://raspberrywebserver.com/$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 511 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement

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