Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
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
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
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
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
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
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
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
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
Pages: 1