In Drupal 6, you could rename (or copy) index.php to foo.php, and browse to example.com/foo.php and you would see your Drupal home page. In Drupal 7 Alpha, this no longer works and you get 404 errors. This is breaking the new CMS functionality in Adobe Dreamweaver CS5 where Dreamweaver is able to discover all of the dynamic include files that make up a Drupal site. Dreamweaver does this by creating a temporary copy of index.php (e.g. index-random-string.php) and adding some introspection code to the copy. We were hoping this problem would be solved by the fix for http://drupal.org/node/711650, but that fix only works if your file is named "index.php".

Besides Dreamweaver CS5, another possible real world scenario for letting users rename index.php is if a user wants their home page to be index.htm, so they rename the Drupal index.php to something else that the web server won't think is a home page (e.g. foo.php).

Steps:
1. Make the changes to htaccess as described in #54 of http://drupal.org/node/711650.
2. Copy the Drupal 7 Alpha index.php and name the copy foo.php. Or rename index.php to foo.php.
3. In your web browser, browse to example.com/foo.php.

Result:
404 error.

Expected:
Drupal 7 home page is shown, like it is in Drupal 6, WordPress 2, WordPress 3, Joomla 1.5, Joomla 1.6 Beta.

Thanks,

David Alcala
Adobe Dreamweaver Quality Engineer

Comments

alippai’s picture

Priority: Critical » Major

It doesn't break basic functionality and it's not a beta blocker.

chx’s picture

Priority: Major » Minor
Status: Active » Postponed (maintainer needs more info)

Now, how is this "critical"? Drupal runs fine, if you hack core it breaks (what else do you want to call renaming index.php if not a hack?).

Second, do you have clean URLs on or not? if you have it on, the rewrite rule was RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] in D6 and it's RewriteRule ^ index.php [L] in D7 -- both have index.php hardwired. If off, are you reporting that going to foo.php?q=bar does not work? I can't reproduce that. Tell us more please.

chx’s picture

(Note that it is only because many users are using Adobe Dreamweaver I have not won't fixed this issue, so please keep it open.)

chx’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)