Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-03-27 08:07:29

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

#14 2007-03-28 00:37:47

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Pointing multiple domains to the same nameservers?

Has anyone got any ideas at all on the above?

Offline

#15 2007-03-28 01:09:06

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

Board footer

Powered by FluxBB