Skip to main content

403 error in Opencart folder

Comments

5 comments

  • 24x7server
    Hello, Can you please try to add following code in your .htaccess file and check it DirectoryIndex index.php index.html site-down.php
    Also try to check your error_log file
    0
  • memfaction
    Thanks, your solution did the trick. At first I put that line into root .htaccess but I got error "Website is currently unavailable. Please try again later" whenever I tried to visit root folder (I found out that this is actually index.php file in root folder). But when I put this line into /shop/ .htaccess file, all of pages opened up just as they should. Now there is just one problem left. I've created subdomain and pointed it into /public_html/shop, but when I open it, Default cPanel Web Site Page opens up from "/cgi-sys/defaultwebpage.cgi". Any ideas how to make it work?
    0
  • cPanelMichael
    [quote="memfaction, post: 1486362">Now there is just one problem left. I've created subdomain and pointed it into /public_html/shop, but when I open it, Default cPanel Web Site Page opens up from "/cgi-sys/defaultwebpage.cgi". Any ideas how to make it work?
    Hello :) Make sure the domain name uses the name servers provided by your web hosting provider. If it uses different name servers, make sure it's pointing to the correct IP address. You can also try clearing the browser and DNS cache on your machine to see if the issue continues. Thank you.
    0
  • memfaction
    Hello, Thanks, I will contact my hosting provider to solve this problem out. Oh, and regarding to my first problem, perhaps I was too quick when I said it's solved out. As soon as I enable SEO optimized links in Opencart settings, the problem returns. Let me give you an example: SEO will make URLs of products look like this http://domain.com/shop/product-name . Since there are no file extensions (like product.php), your trick doesn't work it this case. I also found out where message "Website is currently unavailable. Please try again later" comes from when I try to open URL like the one described before. It's actually only index.php file in public_html root folder with that simple text in it, nothing else. But I have no idea how to disable this aggresive redirection. Perhaps you may know?
    0
  • cPanelMichael
    You may want to check with OpenCart to see why the default Mod_Rewrite rules are failing to properly function. There may be settings or configuration values that they can recommend to you. It may also be a good idea to consult with your web hosting provider to see if there are any server settings in-place that could be preventing the rules from working as intended. Thank you.
    0

Please sign in to leave a comment.