haku Posted December 2, 2008 Share Posted December 2, 2008 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 https://forums.phpfreaks.com/topic/135116-response-header-location-and-addon-domains/ Share on other sites More sharing options...
haku Posted December 2, 2008 Author Share Posted December 2, 2008 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 https://forums.phpfreaks.com/topic/135116-response-header-location-and-addon-domains/#findComment-703788 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.