views:

31

answers:

1

I have my blog at location /blog, and the content is dynamic.

I would like /index.php on my site to mirror /blog

How do I write index.php to mirror a dynamic webpage?

+1  A: 

You should really just forward it or you'll get dinged for duplicate content by search engines. This should matter to you if you're interested in people finding your content via search.

index.php should have the following code:

<?php
    header('Location: /blog', true, 301);
    exit;
?>
Robert Elwell
Or use an iFrame, but again dupe content :/
Marko
Is a single duplicate homepage so bad from an SEO perspective? I can understand if you are duplicating content left and right, but this is literally one page.
Joseph Turian
Yeah, but it's your homepage. Think about it.
Robert Elwell