Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Pointing multiple domains to the same nameservers?
OK – I’m trying this on a site of mine – redirecting the old url to the new, but I am getting a / after the index.php so the url is http://www.domain.com/index.php/
I used Marys – but I couldn’t get the redirection to work at all (I think its a server thing) – so I used maniqui’s like this, which is very similar to the one I had been using and which had the same problem:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain\.com\.au$ [NC]
RewriteRule ^(.*)$ http://www.newdomain.com.au/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^olddomain\.com\.au$ [NC]
RewriteRule ^(.*)$ http://www.newdomain.au/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.olddomain\.com\.au$ [NC]
RewriteRule ^(.*)$ http://www.newdomain.com.au/$1 [R=301,L]
The rest of the htaccess file is the same as the default txp one - like this
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
Any ideas?
Last edited by tye (2007-03-27 08:09:59)
Offline
Re: Pointing multiple domains to the same nameservers?
Has anyone got any ideas at all on the above?
Offline
Re: Pointing multiple domains to the same nameservers?
Ah Ha – fixed it – well altered the format
I put the domain redirect above the textpattern redirect and now it works like a charm
Offline