Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-04-25 02:11:24

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 261
Website Mastodon

Install on top of existing website

I have an existing website (all static pages) that I want to convert to Textpattern. If I install Textpattern (using Cpanel & simplescripts), will it interfere with the existing website? I assume that that the installation is going to tell Apache to redirect all http requests to php? Will it not do so if there are already static pages?

Offline

#2 2013-04-25 05:53:45

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 596
Website

Re: Install on top of existing website

Something like DirectoryIndex index.html index.php in your .htaccess should help with this. I don’t see why it would interfere otherwise.

Offline

#3 2013-04-25 09:30:50

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

Re: Install on top of existing website

Hi

if you can stay with messy url, you have only to not upload the htaccess and then the both are working but you should decide wether index.htm or index.php both cant work at same time when accessing your url (http://yourdomain.com).

Cheers

Offline

#4 2013-04-25 09:50:02

towndock
Member
From: Oriental, NC USA
Registered: 2007-04-06
Posts: 335
Website

Re: Install on top of existing website

I have done this many times, always choosing to put the new Textpattern site in a separate directory until it is ready to launch. Example: domain.com/new

It is clean & simple. When it is time to take down the old site and make the new Textpattern site live, either delete the old site contents or move them to a separate directory – like domain.com/old. Then move everything from the /new directory to the domain root. It may take a couple minutes to clean up any references to the /new directory, and then you are done…

Offline

#5 2013-04-26 03:08:27

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 261
Website Mastodon

Re: Install on top of existing website

Since I have no patience, I would like to add a blog now, and then slowly convert the rest of the pages when the mood suits me. As long as installing it doesn’t do anything weird to the existing website, I guess I am good to go. Thanks!

Offline

#6 2013-04-26 09:15:38

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Install on top of existing website

skewray wrote:

Since I have no patience, I would like to add a blog now, and then slowly convert the rest of the pages when the mood suits me. As long as installing it doesn’t do anything weird to the existing website, I guess I am good to go. Thanks!

How many static pages do you have (to migrate)?
Depending on the existing structure you can add as many static pages directly to Textpattern as you want.

Immediately adding a blog just means to install Textpattern and publish the blog in a not used sub-directory (aka TXP section).
To be on the very safe side you can install TXP in a sub-directory and publish from there.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#7 2013-04-26 13:42:42

kees-b
Member
From: middelburg, nl
Registered: 2004-03-03
Posts: 235
Website

Re: Install on top of existing website

I always do this with one extra line in the normal textpattern .htaccess file:

RewriteRule ^$ /index.html [L]

This (re)directs traffic to domainname.com to index.html. To access the textpattern version of the site you have to use domainname.com/index.php. Apart from this separate entrance everything will work normal.

When I work on a new site I allways put a static index.html file up front and keep the textpattern site out of sight with this trick. To prevent peeping by guessing url’s you can use rvm_maintenance

Kees

Offline

#8 2013-04-26 15:18:27

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 261
Website Mastodon

Re: Install on top of existing website

.htacces already has

# map skewray.com to www.skewray.com
RewriteCond %{HTTP_HOST} ^skewray.com$ [NC]
RewriteRule ^(.*)$ http://www.skewray.com/$1 [L,R=301]

Do I just add the new line at the bottom? Is the end result going to be about the same as for DirectoryIndex?

Offline

#9 2013-05-09 20:53:01

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 261
Website Mastodon

Re: Install on top of existing website

Bottom line: I chickened out and did the new textpattern install on a subdomain. I’ll move it later.

Offline

#10 2013-05-10 12:57:51

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,492
Bitbucket GitHub

Re: Install on top of existing website

skewray wrote:

Bottom line: I chickened out and did the new textpattern install on a subdomain. I’ll move it later.

Just a point to note: if you installed from a package on cPanel, it may be out-of-date; always worth checking your installation is up-to-date – currently version 4.5.4.

Offline

#11 2013-05-10 20:20:27

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 261
Website Mastodon

Re: Install on top of existing website

gaekwad wrote: Just a point to note: if you installed from a package on cPanel, it may be out-of-date; always worth checking your installation is up-to-date – currently version 4.5.4.

Thanks for the tip. cPanel with simplescripts got me 4.5.2, which is probably new enough for what I am doing at this point – learning textpattern.

Offline

Board footer

Powered by FluxBB