[documentation] [Documentation bug] Error in upgrade instructions with respect to copying over .htaccess
CogRusty
drupal-docs at drupal.org
Thu Jan 4 05:29:15 UTC 2007
Issue status update for
http://drupal.org/node/106735
Post a follow up:
http://drupal.org/project/comments/add/106735
Project: Documentation
Version: <none>
Component: Installation
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: Gary Feldman
Updated by: CogRusty
Status: active
As you said, someone who has modified .htaccess should know what they
are doing. So, a short reminder should be safe enough. Something like:
"*** If your have made any required changes to your existing .htaccess
file, remember to keep a note and add them to the new one."
CogRusty
Previous comments:
------------------------------------------------------------------------
Thu, 04 Jan 2007 03:36:19 +0000 : Gary Feldman
On http://drupal.org/upgrade/downloading-drupal-command-line, it says to
copy .htaccess from the backup of the old site into your new site. The
problem with this is that the newer version of Drupal may have
introduced additional items in .htaccess that are also required. For
example, 4.7 added tpl.php to the list of file types that are blocked
(see http://drupal.org/node/58647). If you copy over the old .htaccess,
you'll lose this bug fix.
Unfortunately, I don't think there's a simple way of dealing with this.
The most reliable approach would be to compare your backup .htaccess to
a pristine copy for the same version. If there are no differences, then
just use the new version, and don't copy the one from the backup. If
there are differences, then edit those differences into the new version.
This approach assumes some expertise in .htaccess configuration.
A simpler approach might be to just copy the section from the old into
the new, replacing the corresponding section in the new one. This
assumes that the index.php?q syntax is here to stay, so that there won't
be any changes to this part of .htaccess on the Drupal side of things.
It also assumes there are no local changes to the rest of the file.
This is based on the idea that commonly the only thing changed locally
in .htaccess is the RewriteBase line, and that anyone who has changed
any other part of the file knows what they're doing.
Perhaps someone can come up with a better solution, though I suspect
.htaccess will be a pain forever.
More information about the documentation
mailing list