• Hi,

    We launched our new site design in Nov last year and since then the site has not recovered in the search engine rankings. One possible cause that has just been pointed out to us is that there appear to be two homepages:

    https://www.yukiskitchen.com
    https://www.yukiskitchen.com/current/

    There should be a redirect to the /current/ folder where the site was built, however this does not seem to be set-up correctly. I am also getting multiple duplicate content errors in Google WMT.

    It has been recommended that I move the install to the root domain and have redirects in the htaccess, from the old folders to the new.

    How straight forward is this to do and is it something I can consider?

    Thanks,

    T23

Viewing 3 replies - 1 through 3 (of 3 total)
  • It has been recommended that I move the install to the root domain and have redirects in the htaccess, from the old folders to the new.

    How straight forward is this to do and is it something I can consider?

    Moving the site to ‘root’ can be complicated in some situations or for some people, and you definitely do not need to do that in order to add a redirect. However, it sounds to me like what you really want is to have your domain URL go directly to ‘https://www.yukiskitchen.com/current/’ with the URL only needing to be and showing ‘https://www.yukiskitchen.com/’, yes? If so, even that can be done without actually moving anything.

    I think I can help you with that, just first make things quite clear as to what you have where and how you want things to be.

    Thread Starter tekton23

    (@tekton23)

    Hi,

    Thanks for your reply. The site is installed in /current/ at the moment. Yes it could be an option to keep it there, with the url appering as ‘https://www.yukiskitchen.com/’.

    The most important thing is to get away from the situation of having two homepages appearing to be in both locations, as is now the case. When google visits it should only see one site, with all files in one location and no duplicates.

    Thanks,

    T23

    The site is installed in /current/ at the moment. Yes it could be an option to keep it there, with the url appering as ‘https://www.yukiskitchen.com/’.

    At BlueHost, I deal with that (for Add-On Domains only) by going to cPanel and assigning that domain to that location. However, you might not be able to do that if that domain is your Primary Domain at your host, so here is “Plan B” if you would like to leave the installation right where it is:

    # .htaccess main domain to subdirectory redirect
    # Do not change this next line.
    RewriteEngine on
    # Change example.com to be your main domain.
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    # Change 'subdirectory' to be the directory you will use for your main domain.
    RewriteCond %{REQUEST_URI} !^/subdirectory/
    # Don't change the following two lines.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # Change 'subdirectory' to be the directory you will use for your main domain.
    RewriteRule ^(.*)$ /subdirectory/$1
    # Change example.com to be your main domain again.
    # Change 'subdirectory' to be the directory you will use for your main domain
    # followed by / then the main file for your site, index.php, index.html, etc.
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    ## Use index.php for WordPress
    #RewriteRule ^(/)?$ subdirectory/index.html [L]
    RewriteRule ^(/)?$ subdirectory/index.php [L]
    #
    ## note: Visitors to your Web site will not be able to tell
    ## your main domain is using a subdirectory, they will see
    ## the Web site address only as https://www.example.com/(prettylinks).

    https://my.bluehost.com/cgi/help/347#redirect

    Just before putting that htaccess in place in your root folder immediately preceding /current/, change both of your Dashboard ‘General’ settings to ‘https://www.yukiskitchen.com’. You might then also later need to do some additional updating in your database, but I think that should not be necessary.

    note: Do a complete database backup prior to any and all of the above “just in case”!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Two Homepages, Move to Root Folder?’ is closed to new replies.