By sohopub on
I currently have a live site and obviously a current live index.php page. If I install Drupal it's index.php page would overwrite my current one. Can I rename the index.php in the drupal file for the time being to something like home.php without the drupal install getting screwed up? Or should I install Drupal CMS into a sub folder and repath everything?
Your suggestions are greatly appreciated.
Comments
Possibly...
It may be technically possible to do this. You'd need to rename index.php to something else (e.g. drupal.php) and then edit the .htaccess file in root to send rewritten URLs to the new file name. You'd also probably need to edit httpd.conf to and add a DirectoryIndex directive to look for the new file (so that redirects that point back to root have a chance can be interpreted by Drupal). But... in order to do that you'd need to list your new file ahead of the old one (e.g. DirectoryIndex drupal.php index.php), in which case your old index.php would no longer be the default (it would still be there - just not the default home page).
So, all of that begs the question - what does your current index.php do that can't be done in Drupal? If there's something invaluable there that can't be replicated, then yes, I'd suggest you install to a subdirectory. If not, I would replace what you've got with Drupal (including the index.php file) and have Drupal's home page display what you're currently using the existing index.php file to display.
Drew Gorton
Gorton Studios
Some of our Drupal Sites