Computer Guy
asked on
.htaccess syntax question
This .htaccess file is located in httpdocs/downloads folder
The test and test2 folders are in httpdocs/downloads/jpg/web folder.
With the attached code, it is stating that the file is not found;
1. What should I do to correct the issue?
Thanks!
The test and test2 folders are in httpdocs/downloads/jpg/web
With the attached code, it is stating that the file is not found;
1. What should I do to correct the issue?
Thanks!
RewriteEngine On
RewriteRule ^/?.*(test|test2)/.+/web/[^/]+\.JPE?G$ $0 [NC,L]
RewriteRule ^/?.*/[^/]+\.JPE?G$ image.php?file=$0 [NC]
ASKER
the JPEG file was not found.
Is it in the correct location?
Is it in the correct location?
Your jpeg rule is giving the destination as the original url passed.
Add a RewriteLog option to generate some trace to help you figure out what is going on.
Add a RewriteLog option to generate some trace to help you figure out what is going on.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Add a RewriteLog option to generate some trace to help you figure out what is going on.