Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a domain registered on godaddy (daniloaraujosilva.com).

I would like when I type daniloaraujosilva.com/blog, for example, it redirects to my blog (sapiensgarou.blogspot.com).

How can I perform this?

Obs.: I think this is has a relation with CNAME or A, but I don't know exactly. I am a little new at this.

share|improve this question

1 Answer 1

If you only wish to redirect the /blog subdirectory then I wouldn't bother messing with domain name records at all, I would go for a simple 301 redirect. This will allow you to use the daniloaraujosilva.com domain for other content and only forward the /blog directory to your blogspot domain. An easy way to accomplish this would be to create a PHP file named index.php and place it inside your /blog directory:

<?php
    Header( "HTTP/1.1 301 Moved Permanently" ); 
    Header( "Location: http://sapiensgarou.blogspot.com" ); 
?>

From an SEO standpoint this will forward all traffic properly from your domain name to your blogspot url. I am assuming that you have a hosting account connected to your GoDaddy domain and the ability to create a PHP file, if not then a different method will need to be used.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.