Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 654915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:32:47+00:00 2026-05-13T22:32:47+00:00

I am using codeigniter. My products page shows all the products we have and

  • 0

I am using codeigniter.

My products page shows all the products we have and then users can click on each product_name to get more details about that particular product. So, I have declared products as the class and product_name as a function within the product class – so I could get the url http://www.company.com/products/product_name.

When I go to http://www.company.com/products everything is fine but if I add a trailing slash so it looks like http://www.company.com/products/ my window underneath the logo and menu moves over it hiding both the logo and menu. The same happens when I go to http://www.company.com/products/product_name.

How can I make sure that the window below does not hide when I add trailing slashes or when I go to product_name pages.

Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:32:47+00:00Added an answer on May 13, 2026 at 10:32 pm

    The problem is that you have specified a relative path for your images. You need to make them absolute, or at least relative to the current location. That is to say, if you change your image path from:

    <img src="images/obsia.png">
    

    to

    <img src="/images/obsia.png">
    or
    <img src="http://www.obsia.com/images/obsia.png">
    

    Your problem will be solved.

    The reason this is happening is because the path to the images is determined by the base URL. When you are at http://www.obsia.com or http://www.obsia.com/products, your base URL is http://www.obsia.com.

    To the browser then images/obsia.png is rendered as http://www.obsia.com/image/obsia.png, which your server interprets as wwwroot/images/obsia.png and the relative link works.

    However, if you do http://www.obsia.com/products/ your base url is http://www.obsia.com/products and the relative path for your images changes from http://www.obsia.com/images/obsia.png to http://www.obsia.com/products/images/obsia.png.
    Your server interprets this as , which your server interprets as wwwroot/images/products/obsia.png, which is not a valid path. The server returns a 404 –resulting in broken images.

    You can see this if you use Firebug’s .Net panel. The request for your logo returns:

    GET obsia.png
    http://www.obsia.com/products/images/obsia.png
    
    404 Not Found
    
    obsia.com
    
    539 B
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables, categories and products. I am using CodeIgniter. Categories CREATE TABLE
I'm using codeigniter to create a search page. I'd like to rewrite a GET
I have three tables: 'users', 'products', and 'product_types'. The 'users' table stores all usual
Currently working on a bespoke ecommerce application using Codeigniter. I have a products table
I am using CodeIgniter to pass some parameters to my PHP page through $_POST
I am using Codeigniter framework and I have a form with input fields. When
I'm using CodeIgniter and I got a model that fetches let's say all recipes
I'm using CodeIgniter (a PHP framework) to build an app, and I have an
I'm using CodeIgniter (because it's awesome) and I have something like: <?php echo anchor(/,
I'm using CodeIgniter, alongside the highlight_code($string); ( More info ) function to provide syntax

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.