Download & Extend

Patch functions to settings.php break CleanURLs

Project:Subdomain
Version:6.x-1.5
Component:Documentation
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hello

I have a problem. I am hosting with 1&1 on a Plesk panel server. (VPS)

I have enabled the wildcard etc. In the subdomain enable page, it says that all requirements are met except the settings.php patch.

In the readme.txt it says I should delete the rewrite rules in .htaccess, however if I do this, then cleanURLs breaks. Is this meant to happen? Your readme file says that the site should no longer need these rules?

If I don't delete the rewrite rules, and add the two additional functions to settings.php, then the site simply goes blank white (all page calls results in a white screen)

Please help, as this is driving me crazy!

Comments

#1

Status:active» postponed (maintainer needs more info)

No, the rewrite rules should *not* be deleted.

The part about deleting rewrite rules is in the upgrade section of the readme.txt and should only be followed if you're upgrading from a previous version of the subdomain module that required you to put that exact text - as specified in the readme.txt file - into your .htaccess file.

i.e. you should only delete the following text from your .htaccess file if it's *in* your htaccess file (there's a similar looking section that should not be deleted)

# REQUIRED BY SUBDOMAIN.MODULE
# Moves subdomain to URI path
# e.g: mysubdomain.example.com
# becomes example.com/index.php?_mysubdomain/
# NOTE: does not rewrite subdomain if it is "www".
# If you want it to rewrite www, disable the 2nd line
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} !^www\.([^.]+)\.([^.]+)$
RewriteCond %{HTTP_HOST} ^([^.]+)\.([^.]+)\.([^.]+)$
RewriteRule ^(.*)$ index.php?q=~%1/$1 [L,QSA]

If you don't have the above text in you .htaccess file (and it would only be there if you're upgrading from an earlier version of subdomain - i think v.1.2 or earlier), delete nothing. You can get a fresh copy of .htaccess by downloading the latest copy of Drupal 6.x and copying it's .htaccess file into your site

#2

Status:postponed (maintainer needs more info)» closed (fixed)
nobody click here