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 9170397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:00:49+00:00 2026-06-17T16:00:49+00:00

I am working on a website where I have configured apache to point the

  • 0

I am working on a website where I have configured apache to point the 404 page to index.php via:

"ErrorDocument 404 /index.php" 

so i can parse the url arguments manually. I am currently writing an image wrapper so if you go to for example

"myssite.com/image/test"

it will display a test image with the the php header set to image/jpeg in-order to mask the images physical location on the server as images will later be managed by a database. when I display this image via php like so:

"echo '<img src="/image/test" alt="some_text">';"

It is displayed correctly. if this same thing is done with javascript and inserted onto the page, It receives a 404 error and does not load the image.

I figure I either need to make apache not report a 404 at all, or somehow change the way javascript handles it. Any suggestions?

  • 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-06-17T16:00:50+00:00Added an answer on June 17, 2026 at 4:00 pm

    The 404 error was fixed by adding the following to httpd.conf:

    <Directory "/var/www">
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php [L]
    
    </Directory>
    

    Although that did not help with the image not being displayed, which caused me to to look closer at the function displaying the image. Something is going bad when I use a cropping script prior to the image displaying causing more than likely an issue with the header. this should require minor back-end changes on my part.

    thanks for the help everyone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have working website in PHP with a MySQL backend which has several tables
We have an audio blogging website which can be configured to publish links to
I have a website set up that uses a custom 404 error page. This
I have configured a website on my server machine & it is working till
I have a working website, where I use this expression everywhere. price.ToString(C) It currently
I'm working on a website and have been using absolute positioning, since the viewport
I am working on a website where I have a main div . I
I am currently working on a website that will have a high volume of
Here's what I am working on. At my website I have multiple processes with
I have been working on a website that has some images that I need

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.