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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:30:55+00:00 2026-06-15T09:30:55+00:00

There is a 404 redirect, working fine, but I’m looking for a solution in

  • 0

There is a 404 redirect, working fine, but I’m looking for a solution in the .htaccess file to make an exception in case of images (jpg, gif, png, …) not found.

Someone here with a possibility to do so?

Actual rule in the htaccess file:

ErrorDocument 404 http://example.com/

Best regards!

  • 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-15T09:30:57+00:00Added an answer on June 15, 2026 at 9:30 am

    I am guessing that if an image is not found you want the user to see an image that has an error message instead of the default text page that is normally displayed. Here is how to do that:

    RewriteEngine on
    RewriteBase /
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # Add additional file extensions to the list as needed.
    RewriteCond %{REQUEST_FILENAME} \.(gif|jpg|jpeg|bmp|tiff)$
    RewriteRule (.*) /relative/location/of/errorimage.jpg
    

    If there is something else you are trying to do, comment back and I’ll adjust the example accordingly.

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

Sidebar

Related Questions

I know how to redirect pages with Rewrite. But when there is a 404
The site is 404'ing so I can't search there. I've tried looking at the
I know there are hundreds of posts on here about htaccess but I can't
There are some Wordpress plugins for permanent redirection of all 404's to the main
There're many ways to write an HTTP-status header: HTTP/1.1 404 Not Found Status: 404
Are there any good examples of mvc routing wherein every 404 page not found
Is there a way to actively serve Apache's default, built-in 404 page for a
I need to throw 404 error in module. Or may be there are any
WordPress allows theme designers to place a 404.php file in their theme's directory. This
There's a Rails 3.2.3 web application which doesn't use any database. But in spite

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.