tb,
With deference to Dan, I believe that you only have two ways to get to your addon domain which are as you've indicated.
Code:
Redirect 301 /addondomain.co.uk/ http://www.addondomain.co.uk/
I'm SHOCKED! Is the addon domain's directory addondomain.co.uk?
Oh, well, that should also maintain the {REQUEST_URI} of the original request which is probably not what you want, ergo, I'd fall back on mod_rewrite as follows:
Code:
RewriteEngine on
RewriteRule ^{addon_domain_subdirectory}/(.*)$ http://www.addondomain.co.uk/$1 [R=301,L]
As for your redirects, they should work perfectly in the maindomain. The absolute /index.html should restrain that Redirect to the DocumentRoot (of maindomain). Ditto contact.html. If they don't, continue your mod_rewrite code with:
Code:
RewriteRule ^(index|contact)\.html$ $1.php [R=301,L]
The power of regular expressions can normally overcome irregularities like you're having with mod_alias.
Regards,
DK
Bookmarks