will32 Posted February 19, 2006 Posted February 19, 2006 Hi, I have installed my shop in a sub-directory and i have a index page on my root directory, so when someone types my web-site, they will land on the index then click on the enter store to go to my shop. I have added Meta Tag descriptions etc to my index page, I recently tried to submit my Link to a search engine and noticed (Redirects), Is there a way i can add a say a redirect link to my meta tag so in futhure when i submit my site it will also index the redirect to my shop as well? If so how can i code this. Thanks.
Jack_mcs Posted February 19, 2006 Posted February 19, 2006 What you are doing could get your site banned. If you don't want to have your site in the root, which would bypass the need for all of this, then use .htaccess to redirect it. 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
will32 Posted February 19, 2006 Author Posted February 19, 2006 What you are doing could get your site banned. If you don't want to have your site in the root, which would bypass the need for all of this, then use .htaccess to redirect it. Jack Hi Jack Thanks alot for the reply, Ok well this is the situation, I put my website url on to see what people think of it, and many people say that the flash intro page is not so good and also i have put meta tags on to my intro page and submited to search engines. But my OS commerce shop is installed in a sub-directory, But if i get rid of my intro then visitors will land on say www.domain.com but not get directed to my actual shop. Is there a way round this where i can create a redirect from www.domain.com to www.domain/shop.com, Also when i get rid of my intro page i will also remove my meta-tag data? Is there a way to keep this as well?
Guest Posted February 19, 2006 Posted February 19, 2006 Create a new page called index.php in your root, and in it put the following code: <?php echo catalog/index.php ?> Nothing else. Now make sure there is no index.htm in the root folder. Job done, the bots will figure this out and your visitors come straight into your store. No penalties, no problem.
mmartinez Posted February 19, 2006 Posted February 19, 2006 Create a new page called index.php in your root, and in it put the following code: <?php echo catalog/index.php ?> Nothing else. Now make sure there is no index.htm in the root folder. Job done, the bots will figure this out and your visitors come straight into your store. No penalties, no problem. Hi I tried your suggestion above but I get the follwoing error Warning: Division by zero in /users/................/index.php on line 1 php Any ideas?? Regards, Marco
will32 Posted February 20, 2006 Author Posted February 20, 2006 Create a new page called index.php in your root, and in it put the following code: <?php echo catalog/index.php ?> Nothing else. Now make sure there is no index.htm in the root folder. Job done, the bots will figure this out and your visitors come straight into your store. No penalties, no problem. Hi, Thanks for getting back, I have done but i too keep geting the same error, Warning: Division by zero in /users/................/index.php on line 1 php Any Ideas? Thanks
Guest Posted February 20, 2006 Posted February 20, 2006 eek, ok, try this instead! <?php echo file_get_contents ('http://path_to-your_website/catalog/index.php'); ?> Enjoy!
will32 Posted February 20, 2006 Author Posted February 20, 2006 eek, ok, try this instead! <?php echo file_get_contents ('http://path_to-your_website/catalog/index.php'); ?> Enjoy! Hi, Thanks for that, It worked Like a treat. Thanks again so much, Quick question my previous index.html page had Meta-tag info Description,keywords etc, Can i copy that info and put it into this new file i have created index.php. Thanks again
Guest Posted February 20, 2006 Posted February 20, 2006 Your new page will have all the meta tag info from your osc site; therefore if you wish to have the meta tag info from your old page, you will need to set this as your meta info for your osc installation. As this method basically mirrors your catalog/index.php page, the whole html source is used, including all meta data, and you cant organise it seperately. The alternative would be to create a new page in your catalog directory based on the catalog/index.php setup but with seperate meta data, then mirror this on your root index.php page instead. Hope that helps!
Mediajuggle Posted February 21, 2006 Posted February 21, 2006 eek, ok, try this instead! <?php echo file_get_contents ('http://path_to-your_website/catalog/index.php'); ?> Enjoy! Definitely a nice little trick.... Thanks for that....... My Contribution Music Download Store Template http://www.oscommerce.com/community/contributions,4275
will32 Posted February 21, 2006 Author Posted February 21, 2006 Your new page will have all the meta tag info from your osc site; therefore if you wish to have the meta tag info from your old page, you will need to set this as your meta info for your osc installation. As this method basically mirrors your catalog/index.php page, the whole html source is used, including all meta data, and you cant organise it seperately. The alternative would be to create a new page in your catalog directory based on the catalog/index.php setup but with seperate meta data, then mirror this on your root index.php page instead. Hope that helps! Hi, You are absolutely correct. Thanks alot for your help,
Recommended Posts
Archived
This topic is now archived and is closed to further replies.