Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ht access rewrite statement help?

Posted on 2011-09-30
3
Medium Priority
?
156 Views
Last Modified: 2012-05-12
Hi all,

I currently have some images that users have uploaded which I need to display in search results. The problem is that the images are uploaded into the /Secure/Uploads/ folder but the /Secure folder is protected with a security certificate.

This is a problem because my htaccess file in the redirects requests to https and as a result the images requests have  a high http overhead as it negotiates the request. I could simply move the uploads folder out of the protected directory but I'm not sure whether there is a reason for the user uploaded images to be protected by the security certificate?

The secure folder has this in it's htaccess file:

RewriteEngine On

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.mysite.co.uk/Secure/$1 [R,L]

Open in new window


Can a modification be made to this rewrite condition to not redirect requests for files in the /Secure/Uploads/ and /Secure/Uploads/Thumbs/ folder?
0
Comment
Question by:Mulith
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Expert Comment

by:scaryskullz
ID: 36892826
You can place a rule to redirect /Secure/Uploads to another port if you wish before this Rule and that will be applied first
0
 
LVL 1

Accepted Solution

by:
Mulith earned 0 total points
ID: 36893170
The redirect is what's causing the delay. Managed to find another solution which is to add a .htaccess file to the directory I want to exclude and in it just add

RewriteEngine Off

Open in new window

0
 
LVL 1

Author Closing Comment

by:Mulith
ID: 36915509
Found another solution while searching online.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month9 days, 4 hours left to enroll

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question