vikky Posted August 15, 2016 Share Posted August 15, 2016 Hi, I am using Ubuntu 16.04 LTS I don’t have any hosting I have made the second example site from coffee from Effortless E-Commerce Server – Apache2 and Database – MySQL My web root is /var/www/html When I am running index.php from my browser it is showing the page. For example; localhost/index.php CoffeeWouldn't you love a cup right now?Coffee Goodies Sales Wish List Cart Sale Items 7.00 5.00 30.00 13.00 Welcome to Our Online Coffee House!We're so glad you made it. Have a seat. Let me get you a fresh, hot cup o' Joe. Cream and sugar? There you go. Please use the links at the top to browse through our catalog. If you've been here before, you can find things you bookmarked by clicking on your Wish List and Cart links. But 1)when I click on coffee on this page it shows; Not Found The requested URL /shop/coffee/ was not found on this server. Apache/2.4.18 (Ubuntu) Server at localhost Port 80 2)When I click on goodies on this page it shows; Not FoundThe requested URL /shop/goodies/ was not found on this server. Apache/2.4.18 (Ubuntu) Server at localhost Port 80 and so on with the rest of the links. When I ran command echo getcwd(); where my config.inc.php is stored. It is showing /var/www/html/includes. html is my web root directory. The settings in my config.inc.php are; // Determine location of files and the URL of the site:define ('BASE_URI', '/var/www/');define ('BASE_URL', 'localhost/');define ('MYSQL', '/var/www/mysql.inc.php'); When I am running shop.php from my browser it is showing the page. For example; localhost/shop.php CoffeeWouldn't you love a cup right now? Coffee Goodies Sales Wish List Cart Dark RoastOur darkest, non-espresso roast, with a full flavor and a slightly bitter aftertaste.View All Dark Roast Products KonaA real treat! Kona coffee, fresh from the lush mountains of Hawaii. Smooth in flavor and perfectly roasted!View All Kona Products But 1)When I click on View All Dark Rost Products on this page it shows; Not FoundThe requested URL /browse/coffee/Dark+Roast/2 was not found on this server. Apache/2.4.18 (Ubuntu) Server at localhost Port 802) When I click on coffee on this page it shows; Not FoundThe requested URL /shop/coffee/ was not found on this server. Apache/2.4.18 (Ubuntu) Server at localhost Port 80and so on with the rest of the links. Link to comment Share on other sites More sharing options...
Larry Posted August 17, 2016 Share Posted August 17, 2016 Have you set up the Apache mod_rewrite stuff and confirmed that even basic Apache mod_rewrite changes are working? Link to comment Share on other sites More sharing options...
vikky Posted August 30, 2016 Author Share Posted August 30, 2016 site is working thanks. Link to comment Share on other sites More sharing options...
Recommended Posts