Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-08-17 11:05:14
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
htaccess: in-development holding page
I’ve uncommented the first line (see below) and moved index.htm in front of index.php, but the site persists on using index.php. Is there something else I should do so that index.htm is used? Filip over at textdrive support thinks there is a problem with the htaccess code.
Thank you.
Lee
DirectoryIndex index.htm index.php
#Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c> RewriteEngine On #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
(Edit: updated discussion topic. -Mary)
Last edited by Mary (2007-08-18 14:14:45)
Offline
Re: htaccess: in-development holding page
What are you trying to do?
Offline
#3 2007-08-17 12:19:11
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: htaccess: in-development holding page
I’m trying to make it so when the site url (www.mysite.com) is visited that index.htm is used, but still have my txp site available at www.mysite.com/index.php during it’s development.
Thanks for your help rudd.
Offline
Re: htaccess: in-development holding page
Hmm… try adding this just below the rewriteEngine line (I’m guessing only one of these is needed):
RewriteRule ^(/?)$ index.htm [L]
RewriteRule ^/index.htm - [L]
Last edited by ruud (2007-08-17 12:29:42)
Offline
#5 2007-08-17 12:31:40
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: htaccess: in-development holding page
Excellent thanks, it worked. Is that something that could/should be added, or is htaccess working as expected anyway?
Offline
Re: htaccess: in-development holding page
I’m not really a mod_rewrite guru, but I suspect the rewrite rules did override the directoryIndex setting, rewriting it to index.php at all times. What you’ve done now is prevent that from happening when someone just enters the domain name.
Offline
#7 2007-08-17 13:09:40
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: htaccess: in-development holding page
It’s a neat way to have a holding page and develop a txp on the same url.
Thanks again,
Lee
Offline
Pages: 1