Jump to content

Response header: location, and addon domains


haku

Recommended Posts

I have a domain, domain.com. I also have an addon domain that points to a folder inside domain.com. The addon domain is domain-images.com.

 

The main domain draws all its static images from domain-images.com. But what I am finding is that the HTTP response is 302, and the location header is showing the URI of the folder on the main domain.

 

Are addon domains considered to be redirects? If not, then any ideas where I am going wrong here? Do you need to see some code? If so, what code do you need to see?

Link to comment
Share on other sites

I just figured out the answer to my own problem. What I didn't realize is that .htaccess files in the root affect addon domains. I assumed that the http request went directly to the folder that the addon domain is configured for, without passing through the root folder. So inside the root folder's .htaccess file, I set up a rewrite condition to ignore requests to the addon domain ahead of each rewrite rule. Now the http response is 200, and there is no 'location' header in the response.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.