Solved

ht access rewrite statement help?

Posted on 2011-09-30
3
148 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
  • 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

803 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