That's the problem. I installed all from zero, all dependencies. And then subdomain. First I get some DNS issues in the settings page of subdomain. But I add all the sites to the hosts file (I'm using XAMPP with WinXP).
When I add this to the settings.php:
function custom_url_rewrite_outbound(&$path, &$options, $original_path) {
// Used by the Subdomain module to generate URLs with subdomains
if (module_exists('subdomain')) {
subdomain_url_rewrite_outbound($path, $options);
}
}
function custom_url_rewrite_inbound(&$result, $path, $path_language) {
// Used by the Subdomain module to correctly interpret URLs with subdomains
if (module_exists('subdomain')) {
subdomain_url_rewrite_inbound($result, $path, $path_language);
}
}
as the readme explains. I get a "Page Not Found" error (with drupal theme) in every url of the site I enter.
I can't fix this. Please help me.
Comments
Comment #1
setvik commentedDo you have clean URLs enabled?
Comment #2
Chompas commentedYes I have it enabled.
Comment #3
setvik commenteddo all the prereq checks pass on the subdomain settings screen?
Have you set the $cookie_domain variable in your settings.php to the appropriate value?
For example, if this is on your local personal computer, & you're accessing the website at "localhost", you'd need to set
$cookie_domain to "localhost"
Comment #4
webservant316 commentedHey I have the same problem. I installed subdomain 6.x-1.5. When the functions are added to the settings.php then every single page returns not found. In fact I have to uncomment the functions added to the settings.php before I can even do anything!
The thing I am confused about is that I use subdomain on another site and it works great. One difference is that on the site were subdomain works it is a single site setup using the default site folder. However on the site that does not work it is a multi-site install. That shouldn't make a difference, but something is causing it to not work.
Any ideas?
Hey I looked in the logs and it is adding ~www in the front of the relative paths. Why is it doing that?!
Comment #5
webservant316 commentedSorry folks I don't know how that happened but I thought subdomain 6.x-1.5 was the latest. I have since installed subdomain 6.x-1.7 and the problem went away. Perhaps 6.x-1.5 doesn't work with a multi-site install?