Mobile app version of vmapp.org
Login or Join
Si4351233

: 301 redirect to different directory on Yahoo Small Business Hosting without .htaccess I have a website hosted with Yahoo Small Business Hosting, and I don't have access to use a .htaccess file.

@Si4351233

Posted in: #301Redirect #Seo

I have a website hosted with Yahoo Small Business Hosting, and I don't have access to use a .htaccess file.

I have around 220 pages in a folder mysubfolder (http://example.com/myfolder/mysubfolder) and the age of website is around 3 years.

I am planning to move all 220 pages in mysubfolder to myfolder (one level up). All the pages in mysubfolder are indexed.

What is the best way to do this, so that it wouldn't affect my SEO.

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Si4351233

4 Comments

Sorted by latest first Latest Oldest Best

 

@Gloria169

In order to not impact your SEO, you would need to use a 301 redirect to let search engines know that the pages have permanently moved to the new directory (see the link for more).

Confirmed with a contact at Yahoo Small Business Hosting: You would need to use their Page Redirect Manager tool to setup 301 redirect rules as covered here.

Unfortunately, as with URL rewriting using Apache or other webserver, you can't do this programmatically for all URLs using a regex, you would need to set redirect rules for each URL.

Since many redirects would be needed however, you can upload your redirect rules as a list in a CSV file, as covered here. Using a spreadsheet, you could just do a find/replace to modify your list of old URLs to change them to the new URLs. You can also change the file extension in addition to the directory.

Of special note covered here however, you need to remove all the files at the old location:


When creating and editing redirects in Page Redirect Manager, existing
site pages may not be redirected while they still exist on your site —
the page at the URL you wish to redirect must be deleted first.


You would also need to update any internal links that point to the old directory in your URLs so that they're not broken, and continue to pass authority. Using the example from the question, search your site and change:
example.com/myfolder/mysubfolder to example.com/myfolder
Also, try to contact each external site that links to the old URLs to request that they change them to the new URLs.

10% popularity Vote Up Vote Down


 

@Odierno851

Canonical Links will do what you want. GoogleWebmaster


Copy your existing pages over to your desired directory.
Then on the old pages, the ones you DO NOT want to be indexed by Google, add a canonical link pointing to the new location.
Find & Replace would make quick work of this change to your 220 pages.


Example:
Move this page www.mysite.com/foo/bar/goo.html To this location www.mysite.com/foo/goo.html Use <link rel="canonical" href="http://www.mysite.com/foo/goo.html"/> in the head of the old page.

10% popularity Vote Up Vote Down


 

@Deb1703797

Another potential option would be to follow the advice listed here - www.craniumstorm.com/moving-wordpress-and-yahoo-small-business-hosting/ and create a redirect file in a index.php file. Now, this may or may not work depending on the site you have setup. If its a CMS based site that defaults to looking for the index.php file first, it will work great. If its a bunch of static html files, probably not so much. Either way it wouldn't hurt to give it a try.

<?php
$request = $_SERVER["REQUEST_URI"];
$request_a = explode("/", $request);
$count = count($request_a) - 1;
$request_res = "";
for ($i = 3; $i <= $count; $i++) {
$request_res .= "/" . $request_a[$i];
}
header("HTTP/1.1 301 Moved Permanently");
header("Location: www.newdomainfoo.com/bar . $request_res);
exit();
?>


There is also the CSV file upload redirect manager that you could use if you could easily create a list of your current urls, and new urls, however that could be a pain.

The best option would be to migrate away from Yahoo Small Business as it seems rather restricting in many areas. It would be very easy to setup 301 redirects then, but that is outside the purview of your question :)

10% popularity Vote Up Vote Down


 

@Fox8124981

If you are using some server side language(PHP, Python, ...) is not difficult get all the URLs finishing on mysubfolder/* and then redirect to the new folder using Redirect 301

This is a 301 redirect using PHP:

header("HTTP/1.1 301 Moved Permanently");
header("Location: www.newdomain.com/newdir/newpage.htm );
exit();


If the files are .html and you can't use server side then you should add

<META HTTP-EQUIV=Refresh CONTENT="0; URL=http://mysite.com/myfolder/foo.html">


to all files on subfolder (I recommend download files, then use some text editor with Find & Replace function and upload agin). In any case you should avoid to use Javascript redirect.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme