Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-31 22:30:53

subigo
New Member
Registered: 2006-09-18
Posts: 5

Change index to something else?

Is there a way to change the index.php file to something else like textpattern.php and make it work?

Offline

#2 2006-11-01 21:22:21

mstwntd
Member
From: Melbourne, Australia
Registered: 2004-12-25
Posts: 52

Re: Change index to something else?

Certainly.

  • Rename index.php to example.php
  • In the .htaccess file, add: DirectoryIndex example.php, and change this line: RewriteRule ^(.*) index.php to: RewriteRule ^(.*) example.php

Offline

#3 2009-05-22 12:25:28

Senne
New Member
Registered: 2009-05-22
Posts: 2

Re: Change index to something else?

Is there a way to do this without using a .htaccess file? My server doesn’t support it…

Offline

#4 2009-05-23 17:16:33

Senne
New Member
Registered: 2009-05-22
Posts: 2

Re: Change index to something else?

Anyone an idea? Thanks already!

Offline

#5 2009-05-23 17:55:51

artagesw
Member
From: Seattle, WA
Registered: 2007-04-29
Posts: 227
Website

Re: Change index to something else?

The .htaccess file is only necessary for clean URLs. If you can’t use .htaccess, then you can’t use clean URLs anyway. You can still change the name of the index.php file, and the new name will appear in your (non-clean) URLs instead of “index.”

Offline

Board footer

Powered by FluxBB