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 ‘http://www.yukiskitchen.com/current/’ with the URL only needing to be and showing ‘http://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.
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 ‘http://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 ‘http://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 http://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 ‘http://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”!