Here is a better explaination fo the situation:
I have tried to find the solution, but had no luck
here is the problem:
on my dynamic cloud server (with root acces) I have several domains, two of these are concerned:
* domainXX.biz and domainAA.com
* both have joomla installations, with the same features
* both have joomla installed in their correspoding httpdocs/main folder
* due to that, i had created first an htaccess rule to redirect to /main , but the results were not satisfying ( I wish I had found this forum earlier!)
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.domainXX\.biz$ [OR]
RewriteCond %{HTTP_HOST} ^domainXX\.biz$
RewriteRule ^(.*)$
domainXX.biz/main/ [R=301,L]
* then i created a redirection in an index.php file that I placed in the httpdcos folder
<?php
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location:
domainXX.biz/main" );
?>
this was done for both domains btw with the same rules
I installed afterwards a joomla module that for adapting the joomla template to mobile sites on domainXX.biz, which worked quite well, and it redirects the mobile users to the corresponding site , ex. iphone.domainXX.biz/main or pda.domainXX.biz/main. so far so good!
now i decided to add the module to domainAA, using exactly the same procedures, but here the trouble starts:
the URL iphone(pda).domainAA.com/main shows iphone(pda).domainXX.biz/main! notice that the url does not show any redirection!
Ok, after a few days i decide, just to take everything back to normal, so :
* I remove ALL redirection
* I remove all modules
* I clean ALL the caches
* I check that all folders are removed and databases are also clean
and then...
when i type domainXX.biz/main :all OK
when i type domainAA.com/main :all OK
BUT if i type any combination of letters like xyw.domainAA.com/main I am redirected without url change to the site of domainXX.biz/main !!
And for a test, i checked the image url (which is physically in
domainXX.biz/main/images/stories/europe.png) and i get the following link :
xyw.domainAA.com/main/images/stories/europe.png
note that this image does NOT exist in the above named folder!
I have sent a live header file to check the behaviour of the wld redirections, but the experts on a specialized APache Forum confirmed that it does not come form a server problem but is module related.:
I really like this module, and if I can help by sending logs and files to find the problem and a solution to it, no problem, but it would be too bad if the devs ( @bazza14: sorry i thought you were part of the dev team) put this aside, as the costumer was very interested, and I announced already that this module has a price ( a sum I would forward to you directly) because it is a commercial use.
So I hope we can get this problem solved.