If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Proper redirection to addon domain sub-directories

Although I hadn't changed anything in my .htaccess files for a while, I recently noticed in my Google Webmaster section that I was getting many errors in redirects. In checking my email error messages, I am getting hit with some weird URL requests. Mainly I'm getting errors that attempt to post to different subdirectories of an addon domain by bypass the directory of the addon domain and using the main domain. I'll try to explain it a bit simpler.

I have the domain example.org and the addon domain example2.org. On example2.org I have a subdirectory /sample with a file infoText.php, so the proper link to it would be http://example2.org/sample/newText.php. But I am getting errors which attempt to link to http://www.example.org/sample/newText.php. I have given up trying to figure out why this is happening and am trying to figure a work around using my .htaccess file. I had tried the following in the example.org .htaccess file:

Code:

Redirect /sample http://example2.org/sample

but receive the following error message (it happens in Chromium also):

Code:

The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.

In this case it has nothing to do with cookies. And the corrected URL is displayed in the address bar: http://example2.org/sample/netText.php. I have also tried adding a trailing "/" to the /sample dir in the .htaccess file but get the same error message.

I am really getting tired of all these errors. Any one have any ideas of how to do these redirects to solve this problem? (It shouldn't make a difference but if the entire .htaccess files for both domains are needed, just let me know. I'm just trying to save some space. As I said, I hadn't changed anything before this started happening. The rewrite rule for the addon domain is below)