Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9167597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:25:48+00:00 2026-06-17T15:25:48+00:00

I am trying to take this rewrite rule I have and only make it

  • 0

I am trying to take this rewrite rule I have and only make it re-write (handle) on the back-end, i don’t want the user’s URL to actually change. My objective is to take i.website.com and put this on a CDN, but leave the rest of the website not on a CDN. Right now i.website.com forwards to http://www.website.com/images/ but I want to just have it handle on the back-end and make it so when the user visits i.website.com/asdasd.jpg it doesn’t forward the URL so the CDN works?

I think i got that right…anyways here is my current rewrite, maybe there is a better approach to do this, I am open to suggestions and willing to answer any further questions.

Thanks

RewriteCond %{HTTP_HOST} ^i\.website\.com [NC]
RewriteRule ^(.+)$ http://www.website.com/images/$1 [L,R=301]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:25:49+00:00Added an answer on June 17, 2026 at 3:25 pm

    Based on your comment, I think this scenario may be what you’re looking for:

    On your local server, you host http://www.website.com, including http://www.website.com/images exactly as you’re doing now.

    On the CDN, you host i.website.com. You can set up the CDN to pull content for i.website.com from http://www.website.com/images just like your rewrite rule does now (the rewrite rule would be unnecessary on your server now).

    The only question is, when you say that “The application is designed to take http://www.website.com/images/ and feed it to the right script, but not i.website.com”, do you mean that the application/script pull content from http://www.website.com/images for processing or do you mean that the application/script write out webpages that link to images on http://www.website.com/images, but not on i.website.com?

    If it’s just a matter of the application/script needing to pull content from the http://www.website.com/images/, that’s fine as long as the site’s pages can be written with image links to i.website.com. In that case, the final piece is that you essentially reverse your rewrite rule to direct all outside traffic from http://www.website.com/images/ to i.website.com in order to handle older links, while keeping internal traffic (your application/script) pulling from http://www.website.com/images/.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an older form that I really don't want to rewrite at this
I am trying to make a simple alarm. in this code portion a take
I am trying to use IIS URL rewrite to take a user to a
trying to take this content: <div class=content>one,two,three</div> <div class=content>four,five,six</div> <div class=content>seven,eight,nine</div> and .split and
I'm trying to take this string where lowercase(pdd.last_name) like 'albert%' and replace pdd with
Ok, I'm very simply trying to take this example... http://jsfiddle.net/shanabus/HGF59/ and put it on
Really struggling to figure this out. Just trying to take in data from php
Hi please take a look at this fiddle http://jsfiddle.net/bloodygeese/pwjNQ/1/ I am trying to figure
could anyone take a look at this for me? Problem: trying to output a
I have a datagridview with 9 columns. I am simply trying take the value

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.