I'm running into a mind-bending .htaccess situation and would sure appreciate some help!
Here's the problem:
I'm creating "pretty URLs" for many pages using .htaccess lines like this:
RewriteRule example1.html /example.php?n=1 [NC]
These work. So far so good. But then I start thinking, gosh it would be even prettier to drop the .html altogether, and just have url.com/example be the link. Plain and simple.
So I start trying to implement it, and, it mostly works, but fails in an interesting way.
You can see it fail by visiting www.bhaktibreakfastclub.com/example2.
I've got this line in .htaccess which is doing its job:
RewriteRule example2 /example.php?n=2 [NC]
HOWEVER: In the html on my pages, often "example2" is also used as part of an image or video file name. Such as, in this case, "example2_check.jpg"
Now the image doesn't show up, because it sees the "example2" part of the filename and tries to replace that with /example.php?n=2...
SO! What to do? I want it to do that substitution for the initial URL, but not for the subsequent image or video components of that page... And I do need to continue using filenames that include the same name as the page they're on, as in "example2_check.jpg".