Reply to comment

We have two sites a dutch site and a french site and we want to host it under one url.
Setup your folders in de sites folders. Create a directory for the french site and create a directory for the dutch site. Both will have their own settings file.
In the root of your drupal installation create two symlinks. The two symlinks will point back to the root of your site.

ln -s /var/www/yoursite/ nl 
ln -s /var/www/yoursite/ fr

In the sites folder create the following symlinks.
ln -s /var/www/yoursite/sites/yoursite-dutch yoursite.ext.nl
ln -s /var/www/yoursite/sites/yoursite-french yoursite.ext.fr

When surfing to yoursite.ext/nl drupal will now look for a folder named yoursite.ext.nl in your sites folder, it will find the symlink and will be redirected to /var/www/yoursite/sites/yoursite-dutch and find the correct settings file.

Finaly you ll want people to land on a default site or perhaps you ll want to create a page where people make their choice. This is where the default settings file (sites/default/settings.php) will be used.
On the first line put this:

<?php
header('Location: "http://yoursite.ext/nl/"');
?>

When users visit http://yoursite.ext they ll be redirected to http://yoursite.ext/nl/ which is the dutch version of your site.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><img><p><b><i><table><th><tr><td><blockquote><br /><img /><tbody><span><strike>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <codes>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.