poslanik 0 Light Poster

Hello, long time not posting on Daniweb.

I have a problem with 301 redirecting, it's a bit complicated to explain but it's actually quite simple. Please let me know if my explanation is confusing you, I'll give it another shot.

  1. I have a website hosting account with firm A and a website there I will call website-A. However, I used to be hosted at firm B with which I had another website (I'll call it website-B). The domain name for website-B has nameservers from firm A and the files for it are located at http:/website-A.com/folder-for-website-B.

    2.Now, I changed the file names of a couple of php pages at website-B for better SEO, and I tried 301 redirecting the old pages with the old names to the new ones so as not lose google standing on SERPs. However, since the domain for website-B is at my old hosting firm (with which I now only have a single domain, no webhosting), I can't redirect those pages in the TLD format (redirect to http://website-B.com/new-page.php), I can only redirect http://website-A.com/folder-for-website-B/old_page.php to http://website-A.com/folder-for-website-B/new-page.php.

This is a problem because when I enter the address manually (http://website-B.com/old_page.php) the browser still opens that page and not the new one because in cPanel I can't even choose to redirect the website-B domain name. So basically the best I can do is redirect http://website-A.com/folder-for-website-B/old_page.php but that's not at all useful.

Please help out