Redirecting to a default (or last visited) subdirectory. Does Google like this?
Posted
by
andufo
on Pro Webmasters
See other posts from Pro Webmasters
or by andufo
Published on 2011-12-01T02:03:36Z
Indexed on
2011/12/01
2:21 UTC
Read the original article
Hit count: 204
i have a site that has 3 web applications, lets use this example:
- example.com/nicy
- example.com/mash
- example.com/zoken
The main application is nicy, so if the user comes for the first time (or if Google indexes my site) that will be the default choice. This is the code placed inside example.com/index.php
<?
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://example.com/nicy');
die();
?>
Is this solution SEO friendly for Google to index the nicy subdirectory as the main entrance page for the domain? (because of the 301 redirect).
Thanks!
© Pro Webmasters or respective owner