Guest Posted September 22, 2005 Posted September 22, 2005 my current site has a PR 4/5, hosted on an IIS server, all pages are .asp new page is all .php, will take over my current URL, thus losing all .asp pages and link arrangements. how can I retain my PR? or is it impossible? can i set up all 404 pages to be 301 redirects instead or something? what's the best way to keep my google rank? none of my link exchange partners will be removing my link, as my main url is going to be the same..
Joe7 Posted September 22, 2005 Posted September 22, 2005 If it was simple enough I would get a list of all the ASP pages indexed by Google, save them offline in notepad then upload them back along with a script forwarding that page straight to your main URL, also adding a bit of text at the top saying 'Forwarding you to new site'. I have no idea if changing to PHP will effect your PR but I just wouldn't risk it.
Jack_mcs Posted September 22, 2005 Posted September 22, 2005 You need to do 301 permanent redirects (search the forums for examples on this). If you redirect with html code you will probably not only lose your PR but you may get banned. Some hosts have the option to add redirects from their control panel so you might want to check with them first. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Guest Posted September 22, 2005 Posted September 22, 2005 jack mcs, my cpanel does have the redirect option with 301 redirects. how would i work this? my new host doesn't have asp support... should i just re-create the pages, name them .asp and put a 301 into them? would this work on an apache server with only php/cgi/perl?
Guest Posted September 22, 2005 Posted September 22, 2005 I have no idea if changing to PHP will effect your PR but I just wouldn't risk it. <{POST_SNAPBACK}> it's not really something i can help, my page is getting far too big to keep loading products by hand :'( my current host has far too many blocks on needed features. for example, i can't even host a formmail script there.. :huh:
Jack_mcs Posted September 22, 2005 Posted September 22, 2005 Place the following in an .htacces file in the root of your oscommerce shop redirect permanent / http://www.your_domain_name.com/ Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Guest Posted September 22, 2005 Posted September 22, 2005 i'm going to keep the same domain though, i'm just switching over from .asp pages to .php and none of my categories and such will be the same
Jack_mcs Posted September 23, 2005 Posted September 23, 2005 OK, how about this. In your .htaccess file <Files *.asp> Redirect / /asp_not_found.php? </Files> Then create a file named asp_not_found.php and add this to it <?php $new_loc = str_replace(".asp",".php",$QUERY_STRING); Header("Location: $new_loc"); ?> Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Guest Posted September 23, 2005 Posted September 23, 2005 this will send a 301 to the bots? none of my category and product locations will be the same, could i still use this method and be successful? ..or would it be possible to redirect the new location to a search for %like%?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.