Hallo,
I'm quite new to drupal and to adjusting server settings. I've got problems with multiple urls, clean urls, mod_rewrite, htaccess and how to set everything up right.
My main urls is www.example.com. My drupal installation is in www.example.com/drupal. My provider gives me the opportunity to direct a request directly to the /drupal folder.
I have mod_rewrite enabled and the default drupal .htaccess in the /drupal folder.
base_url in settings.php pointing to this main url.
Clean urls on.
Everything works fine if somebody gets to the site using the main url.
But I've got 5 other urls (eg www.ex-ample.com) that point to the same folder. If somebody gets to the side using a secondary url (www.ex-ample.com) there are a lot of problems with paths.
What I would like to do is to redirect all incoming requests to my main url www.example.com.
How can I do this? Sorry if this is something already written somewhere but I couldn't find a good description. (And I have no idea to do this by modification of htaccess)
I would be very thankful for some help.
Comments
Comment #1
pnm commentedThere are handbook pages on multi-site setup which include a recipe for URL rewriting that may apply.
Alternatively, you could use something like
if you want to simply redirect.