jimbojones Posted January 16, 2006 Posted January 16, 2006 I've just gone live by placing an index.html in the root directory, however the title tags do not show anymore. The coding I am using is: <html> <head> <META name="description" content="xxx"> <META name="keywords" content="xxx"> <META content="index, follow" name=robots> <META content="7 days" name=revisit-after> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>xxx</title> </head> <frameset rows="100%,*" border="0" frameborder="0"> <frame src="http://www.xxx.co.uk/estore/catalog"> </frameset> <noframes>Please use a browser that can use frames.</noframes> </html> (I have blanked out the store name & tags with xxx) If I view the store from admin then the title & product tags work, however if I go via the live site then all the title & product tags are overwritten by the title description in my index.html file. Am I doing the wrong thing by having the above index.html file to direct to my site? If so can someone point my in the right direction as I need to sort this out for SEO. Cheers!!
tina_boots Posted January 16, 2006 Posted January 16, 2006 I've just gone live by placing an index.html in the root directory, however the title tags do not show anymore. The coding I am using is: <html> <head> <META name="description" content="xxx"> <META name="keywords" content="xxx"> <META content="index, follow" name=robots> <META content="7 days" name=revisit-after> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>xxx</title> </head> <frameset rows="100%,*" border="0" frameborder="0"> <frame src="http://www.xxx.co.uk/estore/catalog"> </frameset> <noframes>Please use a browser that can use frames.</noframes> </html> (I have blanked out the store name & tags with xxx) If I view the store from admin then the title & product tags work, however if I go via the live site then all the title & product tags are overwritten by the title description in my index.html file. Am I doing the wrong thing by having the above index.html file to direct to my site? If so can someone point my in the right direction as I need to sort this out for SEO. Cheers!! You are setting up your site to use frames with osC? I would recommend getting rid of the frames as that is what is likely causing your problems. Be well, Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes.
jimbojones Posted January 16, 2006 Author Posted January 16, 2006 You are setting up your site to use frames with osC? I would recommend getting rid of the frames as that is what is likely causing your problems. Be well, Tina Thanks for your reply. How would I do this without frames? I got the coding for this from a non-OSC site - can you show me the correct coding to use for OSC :huh: Sorry to appear thick, I do know some HTML coding but not had to do this before. Cheers!!
jimbojones Posted January 17, 2006 Author Posted January 17, 2006 If anyone can paste the coding they use as a redirect I'll be eternally grateful
jimbojones Posted January 17, 2006 Author Posted January 17, 2006 Found a coding that works for anyone that may need in the future: Here's the code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Your Page Title</title> <meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"></HEAD> <BODY> Optional page text here. </BODY> </HTML> Code Description: <meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"> is the part that actually does the redirecting. The number preceding the url (in this case zero) tells the browser the number of seconds to wait before redirecting to the new url. You could set this to 5 and add some optional text to your page - something like: "Please wait while we redirect you to our new site". That's it! Just copy the code, save it (i.e. save as index.html) and your html redirect will work perfectly. Make sure you put the full string for your home page incl /catalog for the redirect to work
GraphicsGuy Posted January 17, 2006 Posted January 17, 2006 Not quite sure why you are needing a redirect though. The usual install is intended to be the whole site or else there is a link on your site (i.e. "Store", "Shop", etc.). You can download a "pure" copy of osCommerce and its documentation here. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1.
jimbojones Posted February 27, 2006 Author Posted February 27, 2006 Thanks for your reply Graphics Guy. Basically, I used the redirect as an index.html file so the store can be seen live. However, it appears that the search engine spiders are not reading the rest of the site. Looks like I'm doing something wrong here, what should the correct proceedure be to show the site live without the use of the redirect? I put the index.html file in the html folder in the root directory. This is probably really basic stuff but I've searched the forums and not found anything yet. Any help would be appreciated. Cheers!!
GraphicsGuy Posted February 27, 2006 Posted February 27, 2006 Thanks for your reply Graphics Guy. Basically, I used the redirect as an index.html file so the store can be seen live. However, it appears that the search engine spiders are not reading the rest of the site. Looks like I'm doing something wrong here, what should the correct proceedure be to show the site live without the use of the redirect? I put the index.html file in the html folder in the root directory. This is probably really basic stuff but I've searched the forums and not found anything yet. Any help would be appreciated. Cheers!! If you are wanting the store to be what comes up when someone types www.yourdomain.com into their browser, then copy all of the folders and files in the catalog folder to the html folder. Then edit both configure.php files to reflect the new locations (make backup copies before changing them). Basically, just remove catalog/ from all of the defines found in the configure.php files. For example, if you have /catalog/ then it will just be / and if a define had /catalog/admin/ then it would be /admin/ . Then remove the index.html file (back it up too before deleting it. Most all web servers are set up to process index.php if it doesn't find an index.html file. hth Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.