Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-27 08:32:59

chameleonic
New Member
Registered: 2007-09-27
Posts: 3

building a textpattern site in the background of a current / old site

I apologise if there is already help or a post on this, but I’ve spent hours and hours trawling the tubes looking for a solution to this, and couldn’t find one.

I’ve got an old site I’m trying to replace with a textpattern site, and I’ve even put it into it’s own directory and my .htaccess file is pointing to the old index.html inside the directory. So for me to see my default TXP page while testing it I simply have to point my browser to index.php

However when I try and navigate the new text pattern site, due to the .htaccess redirect I just end up getting the old index!

No doubt I’m doing something wrong here, and probably in a wierd way, but does anybody have a simple(ish) solution to this. I’m sure it’s a common problem, but couldn’t see any documentation on it anywhere.

Even a tip on putting up a holding / splash page while I finish the textpattern site would be immensely useful!

thanks for your time.

Offline

#2 2007-09-27 08:46:39

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: building a textpattern site in the background of a current / old site

I use this:

DirectoryIndex index.htm index.php

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_rewrite.c>
	RewriteEngine On
RewriteRule ^(/?)$ index.htm [L]
	#RewriteBase /relative/web/path/

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteRule ^(.*) index.php
</IfModule>

#php_value register_globals 0

(edited for clearer display of the code. -Els)

Last edited by els (2007-09-27 19:00:07)

Offline

#3 2007-09-27 08:58:38

chameleonic
New Member
Registered: 2007-09-27
Posts: 3

Re: building a textpattern site in the background of a current / old site

thanks mu,
I tried that and I got an internal server error – my old site is index.html – and I tried it with the code changed accordingly but still got an internal error :(

Offline

#4 2007-09-27 09:37:02

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: building a textpattern site in the background of a current / old site

I used it to replace the Txp htaccess file in txp 4.05 with TxP installed in the root.

Offline

#5 2007-09-27 10:45:42

chameleonic
New Member
Registered: 2007-09-27
Posts: 3

Re: building a textpattern site in the background of a current / old site

Hmmmmm that’s what I’m doing, but it certainly doesn’t like it. I just get internal server errors

Offline

#6 2007-09-27 19:03:05

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: building a textpattern site in the background of a current / old site

Here is another solution for just displaying an ‘under construction’ message.

Offline

Board footer

Powered by FluxBB