blr044 Posted February 16, 2008 Posted February 16, 2008 When one clicks the top link, you will a 403 error page. Regardless what home link throughout web site, you get this error: You don't have permission to access / on this server. I know a 403 error is due to incorrect file permission setting. In the past, when I get this error, it would be something like this: You don't have permission to access /oscommerce2/catalog/index.php on this server. Now for the last four days I have searched many, many forums using google search. Even the sever where my site is hosted, has not gotten back with me. I looked in these files: both config.php all of my .htaccess application_top.php index.php Please, need desperate help on this. As it is now, google is not able to crawl site. Bennett
germ Posted February 16, 2008 Posted February 16, 2008 This is a test. Copy the text in the CODE box into Notepad on your PC <HTML> <HEAD> <TITLE></TITLE> <LINK REV="made" HREF="mailto:"> <META NAME="generator" CONTENT="NoteTab Light 4.95"> <META NAME="author" CONTENT=""> <META NAME="description" CONTENT=""> <META NAME="keywords" CONTENT=""> <meta name="robots" content="index,follow"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" ALINK="#FF0000"> <H1></H1> <P></P> <P></P> <P></P> <P></P> <center> <A HREF="http://brs-giftshop.com/oscommerce2/catalog/index.php" TARGET="_self">Enter the Store</A> </center> </BODY> </HTML> Save it as index.htm Upload it into the / folder (the root folder) of your site. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
blr044 Posted February 16, 2008 Author Posted February 16, 2008 that did work. it brought up a blank page with text - Enter the Store with http://brs-giftshop.com/ in browser address bar. Clicked the link, it took me to http://brs-giftshop.com/oscommerce2/catalog/index.php Bennett
germ Posted February 16, 2008 Posted February 16, 2008 In your /oscommerce2/catalog/includes/application_top.php find this code: // include the breadcrumb class and start the breadcrumb trail require(DIR_WS_CLASSES . 'breadcrumb.php'); $breadcrumb = new breadcrumb; $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); $breadcrumb->add(HEADER_TITLE_CATALOG, HTTP_SERVER); Change the one line to this: $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER . '/oscommerce2/catalog/index.php'); Does that fix the "Top" link so it points back to your catalog? :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted February 16, 2008 Posted February 16, 2008 You either need to move your shop to the root (discussed in another thread), do a .htaccess redirect, or put something like the index.htm file I made into your / folder, or the robots still won't be able to find your shop. :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
blr044 Posted February 16, 2008 Author Posted February 16, 2008 Making the change in application.php did point to http://brs-giftshop.com/oscommerce2/catalog/index.php But all home links through out the site, when google tries to crawl site or when I enter brs-giftshop.com in browser address bar I still get same error. A week ago, I did move all catalog folders and files up a level. Old address was http://brs-giftshop.com/oscommerce2/catalog/index.php and the new address was http://brs-giftshop.com/catalog/index.php This is what I did: 1. Removed define('HEADER_TITLE_TOP', 'Top'); from /english.php 2. Commented out $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); in /application_top.php 3. In both /configure.php i removed the words oscommerce2 4. In catalog/.htaccess and catalog/includes/.htaccess I removed oscommerce2 That's when all of this problem stated with all home links and google was getting the 403 error code. In checking with my servers host Wednesday, because of the the way oscommerce was installed through cpanel, they said it will not work. So over a week not getting hits to site, it hurts. So I reversed all of the steps last night. Still the home link getting 403 error code. Today my server host said, if i want to put it in the root directory, i will have to make backup of DB and manually install fresh store into root and the restore the backup. So now I am wondering if that's what I need to do. Throughout the internet, i was different ideas to solve my situation. Still learning about how all this works, but have a way to go. i believe some of these do not belong where they are. This is what is in my tree directory: brs-giftshop.ocm/oscommerce2/ brs-giftshop.com/sitemap.xml brs-giftshop.com/robots.txt brs-giftshop.com/googlesitemapcategories.php brs-giftshop.com/googlesitemapProducts.php brs-giftshop.ocm/oscommerce2/catalog/ brs-giftshop.ocm/oscommerce2/catalog/.htaccess brs-giftshop.ocm/oscommerce2/catalog//sitemap.xml brs-giftshop.ocm/oscommerce2/catalog/robots.txt brs-giftshop.ocm/oscommerce2/catalog/includes/.htaccess brs-giftshop.ocm/oscommerce2/catalog/admin/.htaccess brs-giftshop.ocm/oscommerce2/catalog/admin/includes/.htaccess I think google does not like redirect. in fact that i got from google webmaster tools. But is copying a fresh copy into root and then run the install.html would solve all of my problems. Then restore the DB that only replace all of my products and nothing else, is that right? Because I have over 1500 items in catalog. I know I have a lot here. but just to get site back running the way it should. Thanks. Bennett
germ Posted February 16, 2008 Posted February 16, 2008 There's a contribution called: Store in Root (click it) I've never done it, but I thought all you had to do was copy the catalog (in your case /oscommerce2/catalog) files/folders into the root and change the configure files. I didn't think you had to mess with the DB at all (but I could be mistaken). If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
blr044 Posted February 16, 2008 Author Posted February 16, 2008 That was the contribution I used. I moved files from brs-giftshop.com /oscomerce2/catalog/ to brs-giftshop.com/catalog/ Then edit the following files: both configure.php /engish.php /application_top.php So do you think if I installed fresh version and then type brs-giftshop.com/install.htm in browser address bar and follow the install instruction would solve issue. Or just move files into temp folder and use ftp to copy files into the root directory ( brs-giftshop.com/ ). There two version, I believe. I think it's Online Merchant v2.2 Release Candidate 2a, ( but isn't in a beat stage?) and osCommerce 2.2 Milestone 2 Isn't version 2.2 going to be outdated soon? Bennett
germ Posted February 16, 2008 Posted February 16, 2008 If you do this: I moved files from brs-giftshop.com /oscomerce2/catalog/ to brs-giftshop.com/catalog/ You still have the same problem. They need to go into the / (root) folder. I really can't answer your questions because I haven't moved a shop. I just installed it into the root to begin with. You'll just have to: 1. Move the shop, and get it to work. 2. Leave it where it is, and use something like the index.htm to let the robots know where the shop is. 3. Do a .htaccess redirect. I am not in a position to say which is best for you. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
blr044 Posted February 16, 2008 Author Posted February 16, 2008 One last question then I will think what I will do. Getting most of oscommerce store down. You mention /root So /root mean I will copy files into brs-giftshop.com/ like for example: brs-giftdshop.com/index.php brs-giftshop.com/includes brs-giftshop.com/admin etc. Will wait for your answer. thanks a bunch. Have a good evening! Bennett
germ Posted February 16, 2008 Posted February 16, 2008 Copy all the files and folders from here: /oscomerce2/catalog/ to / Then edit the /includes/configure.php and /admin/includes/configure.php files, and anything else the contributions says. If you have problems with things still trying to link back to the /oscomerce2/catalog/, check these files if they exist: /catalog/includes/local/configure.php /admin/includes/local/configure.php It isn't real well documented (as far as I can tell), but osC will use data from these files if present, so they must be correct as well. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
blr044 Posted February 16, 2008 Author Posted February 16, 2008 Jim, Moved files. Links working and all, even notice google is crawling site as I am writing this. Also went through about 20 pages, index link works. If it was possible to send a cold beer through cyber(sp) space, i would :lol: Thanks!! Bennett
germ Posted February 16, 2008 Posted February 16, 2008 Pat yourself on the back, there, Dude! :thumbsup: You've done all the hard work. All I did was offer some suggestions. May I offer another? :unsure: When I go to the "secure" (SSL) side of your site, I'm getting the "Do you want to display both secure and non-secure items?" message, and I think I know why. It's the stat counter code in your /includes/footer.php file. Try changing the stat counter script to this: <script type="text/javascript" src="https://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a class="statcounter" href="https://www.statcounter.com/"><img class="statcounter" src="https://c2.statcounter.com/334944/0/e41e6a55/0/" alt="web stats" /></a></div></noscript> If that doesn't fix it, I do have an alternate solution. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
blr044 Posted February 16, 2008 Author Posted February 16, 2008 Thanks. I use firefox as my browser and that that is generally at the bottom of browser is so small, I never noticed the slanted line running through it to let me know. I just noticed the browser address bar went from a white background to a red background. Done some further test today. Still running smoothly. Even getting visitors back through search engines again. Thanks again. Have a great weekend. Bennett
Recommended Posts
Archived
This topic is now archived and is closed to further replies.