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 |
Jump to:
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
Do you have clean URLs enabled?
#2
Yes I have it enabled.
#3
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"