Jump to content
Larry Ullman's Book Forums
vikky

Functionality - Site Is Not Working Correctly - Base_Uri & Base_Url -

Recommended Posts

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?
 
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 Found

The 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?
 
  • Dark Roast

    Our darkest, non-espresso roast, with a full flavor and a slightly bitter aftertaste.
    View All Dark Roast Products

  • Kona

    A 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 Found

The requested URL /browse/coffee/Dark+Roast/2 was not found on this server.

Apache/2.4.18 (Ubuntu) Server at localhost Port 80
2) 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
and so on with the rest of the links.

Share this post


Link to post
Share on other sites

Have you set up the Apache mod_rewrite stuff and confirmed that even basic Apache mod_rewrite changes are working? 

Share this post


Link to post
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.

Loading...

×
×
  • Create New...