Sunday, May 10, 2015

Amazon EC2 Multi Domain Setup and Technology Behind 9lessons

Recent days I received lots for requests from my readers that asked to me few questions about 9lessons.info hosting and CMS technology. This post explains you how do I setup my domains + sub domains with Blogger and Amazon EC2 hosting. How to setup multi domains setup in Amazon Elastic Compute Cloud using htaccess file.

Amazon EC2 Multi Domain Setup



Why Blogger
It's powerful, fast and it is Google's product. 9lessons.info powered my many cloud services picasa for images, download scripts by box.net and revenue by Google adsense
Amazon EC2 Multi Domain Setup


Domain Redirection
.htacces code for redirecting 9lessons.info to www.9lessons.info
RewriteEngine On
RewriteCond %{HTTP_HOST} ^9lessons.info
RewriteRule (.*) http://www.9lessons.info/$1 [R=301,L]

Sub Domain Redirection
Sub domain redirection mapping to folder. Here demos.9lessons.info connecting to demos folders.
RewriteCond %{HTTP_HOST} ^demos\.9lessons\.info$
RewriteCond %{REQUEST_URI} !^/demos/
RewriteRule (.*) /demos/$1

RewriteCond %{HTTP_HOST} ^labs\.9lessons\.info$
RewriteCond %{REQUEST_URI} !^/labs/
RewriteRule (.*) /labs/$1

Godaddy DNS Settings
Godaddy DNS settings

Other Domain
Same way third party domain redirection.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^androidhive.info
RewriteRule (.*) http://www.androidhive.info/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^www\.androidhive\.info$
RewriteCond %{REQUEST_URI} !^/androidhive/
RewriteRule (.*) /androidhive/$1

Elastic IP Redirection
IP redirection to www.9lessons.info
<script>
window.location.href = "http://www.9lessons.info/";
</script>

My Favorite Tools and Fonts
Specially I love hand drawing effects. I'm using Adobe Illustrator and Photoshop for designing banners and here my favorite fonts.
Amazon EC2 Multi Domain Setup

Download Fonts

No comments:

Post a Comment