Posted by traxer on September 1, 2008 at 11:57am
| Project: | Drupal core |
| Version: | 7.x-dev |
| Component: | base system |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
I think most of the Drupal installations run from a VirtualDocumentRoot. To help inexperienced administrators during the installation, it would be a good idea to uncomment the RewriteBase line in .htaccess. I've attached a patch that does this.
I am not totally happy with the modifications I made to the help text, though.
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| Uncomment RewriteBase.patch | 877 bytes | Idle | Fetch test file: failed to retrieve [Uncomment RewriteBase.patch] from project client. | View details | Re-test |
Comments
#1
Slightly better help text.
#2
I've never had to use this option before, I would think this would make sites in subfolders much more complicated.
Robin
#3
Whether or not RewriteBase is required seems to depend on configuration options outside the .htaccess file. I know of three hosting providers that require RewriteBase to be set explicitly for Clean URLs to work, regardless of where you install Drupal. But I also heard of other hosting providers that do not require it. I'm confused.
#4
I would much rather see better documentation in the event that Clean URL support cannot be detected by the installer.
-1 on changing .htaccess.
Robin
#5
+1 for better documentation
While the current documentation gives a thorough overview (if there is such a thing), my guess is that many users are overwhelmed by the number of pages on that topic.
However, before I say -1 to my original proposal, can anyone give an example Apache configuration where Drupal is installed in a subdirectory an Clean URLs work out of the box?
#6
Better documentation is always welcome, but isn't there something automatic we can do to improve the clean-url-activation? Like detecting VirtualDocumentRoot vs DocumentRoot and/or detecting whether we're in a subdirectory or not. And based on these detections, make suggestions to the user or even alter .htaccess?
#7
I know this works out of the box on my setup on CentOS 5. I can get you a copy of the httpd.conf if you wish.
#8
Making suggestions to the user during installation: +1
Altering .htaccess during installation: -1 .htaccess must not be owned by the user who executes the webserver. Therefore, altering .htaccess during installation only serves test and development installations. I don't think it's a good Idea to add additional code for that case.
Please do so.
#9
I'm not aware of many support requests for this, so marking won't fix.
#10
First, I don't think this should be rolled into core. But, there are cases where Drupal (via drush make and other build tools) will want the RewriteBase / set at build time. An easy way to do that is to pull in a patch and apply it. These seems as good a place as any for such a patch. I found this issues quickly in the drupal search for the topic after all.
This issue should remain closed (won't fix). The patch is attached here for cases where people want it.
#11