Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-12-31 03:00:33
- rbl
- Member
- From: Portugal
- Registered: 2004-02-25
- Posts: 40
indexless instalation
Hi!
I’m working on a website where TXP shares space with a couple of other scripts, lets say a forum and an image gallery just to keep things simple.
The forum resides in /forum/ and the gallery in /gallery/. TXP is installed at root level to be able to use URLs like site.com/articles or site.com/reviews alongside with site.com/forum and site.com/gallery.
I’ve renamed TXP’s index.php to txp.php and accessing it shows everything ok.
On the site’s root there is a custom index.php file that acts like a portal, showing the last content posted in the forum, gallery and TXP.
I changed the htaccess rewriterule to the new txp.php (RewriteRule ^(.*) txp.php) so that TXP knows what it should use to serve its content but now accessing site.com shows txp.php and not index.php
If I comment that line out, all TXP content goes 404.
Is there any way to have index.php displayed when visitors hit site.com?
Thanks! =)
Ricardo
Offline
#2 2006-01-01 01:34:04
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: indexless instalation
Textpattern assumes its main php file is called index.php. Renaming it will break things, as you’ve discovered.
Your question is different, but the answer is the same as this FAQ: make Textpattern your top level script, and embed other things inside it.
Alex
Offline
#3 2006-01-01 08:18:01
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: indexless instalation
I suspect you changed this to txp.php
when you changed the rewrite rules:
DirectoryIndex index.php index.html
That’s the line that tells the server what file to fetch as the default for a directory, which you still want as index.php
.
Offline
Pages: 1