jthornton Posted February 4, 2018 Share Posted February 4, 2018 (edited) I installed cubecart on my localhost and when I open the store and click on the test product I get this error: The requested URL /cubecart/test-category/test-product.html was not found on this server. I also don't see the other product I created in the store. JT Edited February 4, 2018 by jthornton add tag Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted February 4, 2018 Share Posted February 4, 2018 Never develop anything on a localhost (although several people do) but probably something to do with url ReWrite not working ? Quote Link to comment Share on other sites More sharing options...
jthornton Posted February 4, 2018 Author Share Posted February 4, 2018 Ok, thanks JT Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 4, 2018 Share Posted February 4, 2018 I have a system I develop locally with. Please use 127.0.0.1 as the web address. Search these forums for my set of statements for global.inc.php with a local server. The "not found" message indicates your web server is not reading the .htaccess file, or, if it is not Apache or nginx(?), then it needs its own set of rewrite rules in its file of directives. (I can give you a set of rules for Hiawatha.) Quote Link to comment Share on other sites More sharing options...
jthornton Posted February 5, 2018 Author Share Posted February 5, 2018 (edited) When I use 127.0.1.1 the Apache2 web page shows up. When I use 127.0.1.1/cubecart I get the store front when I click on the test product I get this error Not Found The requested URL /cubecart/test-category/test-product.html was not found on this server. Apache/2.4.7 (Ubuntu) Server at 127.0.1.1 Port 80 Looking at the .htaccess file in the /www/html/cubecart directory I see a bunch of rewrite rules, maybe I can compair yours to mine and see the difference. I'm on satellite so my bandwidth is very limited and that is the reason I prefer to develop locally. Thanks JT .htaccess Edited February 5, 2018 by jthornton attach file Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 5, 2018 Share Posted February 5, 2018 (edited) The storefront means that the web server is working. The web server's 404 response means that the documnet /cubecart/test-category/test-product.html does not actually exist. And it would not exist because there are URL Rewrite directives in the .htaccess file that will rewrite that to index.php?seo_path=/cubecart/test-category/test-product However, there is also a needed directive that says to use as a base address this part: /cubecart. So, make sure the .htaccess file has the directive: RewriteBase /cubecart (which, I see that it does) There is also one other setting needed in the Apache configuration file: AllowOverride Finally, make sure the web server's configuation file is loading mod_rewrite. I also see in your post you are using 127.0.1.1. I suppose that will work, but I have always seen 127.0.0.1. Make sure to double-check the statements in global.inc.php. Edited February 5, 2018 by bsmither Quote Link to comment Share on other sites More sharing options...
jthornton Posted February 5, 2018 Author Share Posted February 5, 2018 I added the following to /etc/apache2/apache2.conf and now it works on my local host. <Directory /var/www/html/cubecart> AllowOverride All </Directory> My network router is set up on 192.168.1.1 because I have some IP cameras on the LAN and they always come 192.168.1.xx. Thanks Again, now I can test off line all I want without worrying about my data usage. Thanks JT Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.