Monday, January 12, 2009

redirect to blogspot

I found that a lot of domain registrars with dns server don't allow to create CNAME to main domain ( You need to create subdomain ( or for CNAME to .

It's good if you have homepage ( and blog(

But blogspot for me is homepage and blog )). So i redirect from to CNAMEd

I use apache mod_rewrite and php.

RewriteEngine on
RewriteRule ^(.*)$ index.php?$1 [QSA,L]


$uri = str_replace("index.php&", "", $uri );
$uri = str_replace("index.php", "", $uri );
Powered by Blogger.