Link to home
Start Free TrialLog in
Avatar of Computer Guy
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!
RewriteEngine On
RewriteRule ^/?.*(test|test2)/.+/web/[^/]+\.JPE?G$ $0 [NC,L]
RewriteRule ^/?.*/[^/]+\.JPE?G$ image.php?file=$0 [NC]

Open in new window

Avatar of sweetfa2
sweetfa2
Flag of Australia image

What file is not found - .htaccess, *.JPEG, ???


Add a RewriteLog option to generate some trace to help you figure out what is going on.
Avatar of Computer Guy
Computer Guy

ASKER

the JPEG file was not found.

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.
ASKER CERTIFIED SOLUTION
Avatar of aliganjei
aliganjei

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial