I get a "Page Not Found" when i copy the code in the settings.php file

Chompas - April 25, 2009 - 02:42
Project:Subdomain
Version:6.x-1.5
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:active
Description

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.

#1

setvik - May 14, 2009 - 05:43

Do you have clean URLs enabled?

#2

Chompas - May 19, 2009 - 14:50

Yes I have it enabled.

#3

setvik - May 20, 2009 - 01:03

do 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"

 
 

Drupal is a registered trademark of Dries Buytaert.