htaccess not rewriting
Posted: Fri Jun 16, 2006 11:47 am
I'm trying to create a clean URL thumbnailing script using htaccess. In my htaccess file, I have:
The filename itself will be a numeric filename, ie: 123456789.jpg. This is coming from a database, so the files are strict.
What I want it to do is when I call (in an img tag) something like "uploads/thumbnail/123456789.jpg", it is really just calling the script "uploads/thumbnail.php?f=123456789.jpg". Every time I test this htaccess, I get a page that all it says is "No input file specified."
See for yourself:
http://www.whitemoose.net/overwhelm/upl ... 456789.jpg
But if you try:
http://www.whitemoose.net/overwhelm/uploads/thumbnail
It prints out the word "hi". The thumbnail.php (which is not written yet, all it does now is print out the word "hi") is being accessed properly via the second link, but not the first. I'm putting this htaccess file inside the /uploads directory, and not the base. There is no other htaccess file in any directory on my server.
I have also tried:
in the base directory, and I get the same thing.
What am I doing wrong?
Code: Select all
RewriteEngine On
RewriteRule ^thumbnail/([0-9]*\.[a-zA-Z]*)$ thumbnail.php?f=$1What I want it to do is when I call (in an img tag) something like "uploads/thumbnail/123456789.jpg", it is really just calling the script "uploads/thumbnail.php?f=123456789.jpg". Every time I test this htaccess, I get a page that all it says is "No input file specified."
See for yourself:
http://www.whitemoose.net/overwhelm/upl ... 456789.jpg
But if you try:
http://www.whitemoose.net/overwhelm/uploads/thumbnail
It prints out the word "hi". The thumbnail.php (which is not written yet, all it does now is print out the word "hi") is being accessed properly via the second link, but not the first. I'm putting this htaccess file inside the /uploads directory, and not the base. There is no other htaccess file in any directory on my server.
I have also tried:
Code: Select all
RewriteEngine On
RewriteRule ^overwhelm/uploads/thumbnail/([0-9]*\.[a-zA-Z]*)$ overwhelm/uploads/thumbnail.php?f=$1What am I doing wrong?