[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Url rewritting non www to www and Cloudfront CDN

Posted on 2013-01-30
1
Medium Priority
?
877 Views
Last Modified: 2013-02-03
I'm using managed fusion to rewrite non www to www.

RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
RewriteRule ^/(.*)$ http://www.mysite.com [R=301,NC,L]

However, this is messing up cloudfront

When I make a request to
mycode.cloudfront.net/images/logo.png

I get redirected to www.mysite.com
When i remove the cond and rule, it works as expected.


The origin in cloudfront is setup as
mysite.com

I'm not sure I understand why this is happening, any suggestions?
0
Comment
Question by:JRockFL
[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
1 Comment
 
LVL 29

Accepted Solution

by:
Kumaraswamy R earned 2000 total points
ID: 38838328
Hi

bellow url give some idea

Using CloudFront CDN for Sitecore media content

http://herskind.co.uk/blog/2012/04/using-cloudfront-for-sitecore-media-content

IIS URL Rewrite – rewriting non-www to www

http://weblogs.asp.net/owscott/archive/2009/11/27/iis-url-rewrite-rewriting-non-www-to-www.aspx
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

650 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