default image .htaccess?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mkx
    Confirmed User
    • Nov 2003
    • 4001

    #1

    default image .htaccess?

    I need to set a default image when the image requested doesn't exist. How can I do this with .htaccess?

    Hope someone can help
  • gooddomains
    Too lazy to set a custom title
    • Jul 2003
    • 10127

    #2
    bump 4 ya

    Comment

    • mkx
      Confirmed User
      • Nov 2003
      • 4001

      #3
      bump for me

      Comment

      • gooddomains
        Too lazy to set a custom title
        • Jul 2003
        • 10127

        #4
        bump 4 ya

        Comment

        • mkx
          Confirmed User
          • Nov 2003
          • 4001

          #5
          bump for me

          Comment

          • Wolfy
            Confirmed User
            • Dec 2003
            • 3574

            #6
            Code:
            RewriteEngine On
            RewriteBase /
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule (gif|jpe?g|bmp|png)$ http://www.yoursite.com/images/default.gif [R,L]

            I think that does it.

            Comment

            • mkx
              Confirmed User
              • Nov 2003
              • 4001

              #7
              Thanks that worked

              Comment

              • lambpie
                Confirmed User
                • Nov 2004
                • 671

                #8
                this stuff went straight over my head!

                Comment

                Working...