Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-06-29 16:01:06
- ChrisArchitect
- Member
- From: Canada
- Registered: 2007-06-20
- Posts: 25
Change filename of main file index.php to run alongside static site
Hey guys,
Sorry if this is covered in a FAQ or other thread…couldn’t’ find it anything
I’m working on a migration from a legacy site of static content to TXP but want to have the site running with new content at the same time/alongside the old site.
If I change the filename of index.php … the core application file in the web root, to say….anything else cms.php or something..and modify the .htaccess rewrite accordingly …. will I be able to access both at the same time?
my legacy index.html say….and then some new TXP powered pages on /section/title whatever…..?
ideas/thoughts/confirmations appreciated
—
Offline
Re: Change filename of main file index.php to run alongside static site
ChrisArchitect wrote:
will I be able to access both at the same time?
If the old site only consists static files/pages then technically yes, but not exactly. In such case the old site would still be the index page. For example requesting the site root (domain.com) without specifying path, would just bring up the current index page, index.html. You wouldn’t see the Textpattern site as the requests wouldn’t land there as long as there is real static file in the requested path.
Personally I would just put the new dev site to different location. For example, to a sub directory or under a sub domain, and when the new site is ready to go live, I would just move the files and change the site’s URL in the Preferences.
Changing the site’s address shouldn’t cause any problems, as long as you use the dynamic tags to build all the URLs (i.e. site_url, section etc). All URLs build using those tags would change when the preferences are changed.
Offline
Re: Change filename of main file index.php to run alongside static site
Why not copy and paste the old site home page html into a txp page template and set it as your home page template in txp…then all the legacy stuff will get directed from there and all your new txp stuff will run like normal…
Offline