Jump to content

Test Product not Found


jthornton

Recommended Posts

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 by jthornton
add tag
Link to comment
Share on other sites

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.)

Link to comment
Share on other sites

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 by jthornton
attach file
Link to comment
Share on other sites

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 by bsmither
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...