[documentation] [Documentation support] problems with multiple urls, clean urls, mod_rewrite, htaccess

hausig drupal-docs at drupal.org
Thu Aug 3 21:23:53 UTC 2006


Issue status update for 
http://drupal.org/node/76959
Post a follow up: 
http://drupal.org/project/comments/add/76959

 Project:      Documentation
 Version:      <none>
 Component:    Admin Guide
 Category:     support requests
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  hausig
 Updated by:   hausig
 Status:       active

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.




hausig



More information about the documentation mailing list