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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:46:01+00:00 2026-05-24T18:46:01+00:00

I have an auto-watermarking script on my website, and the .htaccess file uses this

  • 0

I have an auto-watermarking script on my website, and the .htaccess file uses this line to redirect all images to the watermark.php file, which watermarks them. That I all have working, except the .htaccess line also redirects things like .js. So now my jQuery doesn’t work anymore. The line is this:

RewriteRule ^([^thumb].*\.[jJ].*)$ watermark.php?src=$1

I didn’t write it, I copied it from somewhere. I think it has to do with the jJ (for .js), but how can I change that to still work with images, but not JS files?

  • 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-24T18:46:01+00:00Added an answer on May 24, 2026 at 6:46 pm

    The above regex matches any file whose extension begins with j or J, and whose filename doesn’t consist entirely of t‘s h‘s u‘s m‘s and b‘s. Not exactly what they were going for I don’t think.

    RewriteRule ^(.*\.(?:jpe?g|bmp|gif|png|tiff?))$ watermark.php?src=$1
    

    will rewrite anything with the extension:

    • jpeg
    • jpg
    • bmp
    • gif
    • png
    • tiff
    • tif
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an auto-generated file which looks something like this... static void do_SomeFunc1(void* parameter)
I have an auto-generated file each day that gets called by a shell script.
i have my auto-generated linq to sql classes, and i extend this class using
Is it possible to have VIM auto populate a file based on the extension?
I have auto request using jquery ajax, I am using this function for detection
I have MySQL table that doesn't have AUTO_INCREMENT field. In PHP I run this
I have auto indentation turned on in my .vimrc file set autoindent which moves
I have auto complete for a JCombobox working by following this article: http://today.java.net/pub/a/today/2007/07/19/adding-auto-completion-to-swing-comboboxes.html I
Hello all i am using datagrid and it doesnot have auto numbering. so i
I have Auto completed text view,i want to filter the items present in the

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.