By dru_paul on
I have a site which in part needs to operate independently of Drupal.
What I'd like to do is have drupal recognize "blogdex.php" as it's default home rather than index.php
I noticed that it becomes aware of its directory path when you change its directory before you install, so I also tried changing the file name from index.php to blogdex.php, but it appears to ignore this as far as it's nav system goes. Anyone know a quick way to do this? or is that just asking for trouble?
Thanks,
Paul
Comments
use .htaccess
You can specify the order of page load, when you visit the website url.
Simply add:
# Set the default handler.
DirectoryIndex blogdex.php.html index.php
to your root .htaccess file.
This means that index.php is still your main paghe,
but if you type in: www.yourwebsite.com ,
it will show blogindex first.
Hope that helps?
Re: use .htaccess
Thanks 72dpi,
That will come in handy at a different juncture.
The trouble is, I don't want the site to default to it yet... I was hoping to access Drupal at a special file name and have it rememeber that as it's home file while I test it.
I'll keep looking around, but for now I've left it in it's own directory using index.php.
Thanks for your reply.
Paul
Looking for a solution, too
I'm looking for the same solution. I'd like to be able to rename my index.php to be drupal.php or whatever.
Ideas?