smf: rename index.php

by prettyscripts on 2008-01-10 10:15:37

freephpsmf

in smf, everything is driven / processed by index.php. files with this name is also used as the default startup page when a website / directory is accessed.

if you don’t want to use the forum as the default page and want to write your own, one way is to install the forum in a subdirectory. but if you want to use the same directory as the forum, you can rename the file and write your own index.php.

to rename index.php to [newname].php:

  • vi Sources/QueryString.php
  • search for $scripturl = $boardurl . ‘/index.php’; - replace index.php with [newname].php

this information is taken from one of smf’s forum post [link…]

Tags: php, rename, smf

No feedback yet

Leave a comment


Your email address will not be revealed on this site.
PoorExcellent
note: all comments are moderated. do not spam and do not advertise. only comments relevant to the post will be published.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)