[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

.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

0
Computer Guy
Asked:
Computer Guy
  • 2
1 Solution
 
sweetfa2Commented:
What file is not found - .htaccess, *.JPEG, ???


Add a RewriteLog option to generate some trace to help you figure out what is going on.
0
 
Computer GuyAuthor Commented:
the JPEG file was not found.

Is it in the correct location?
0
 
sweetfa2Commented:
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.
0
 
aliganjeiCommented:
Your question is not clear and I can not what is the URL sent to the server and what do you expect it to do.
May you please give some samples of your input and desired redirection to take place?
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now