I have a Drupal 6 installation with a search tool implemented using views.... a menu item has been added to the navigation menu for the search manually... http://mysite/?q=searchdb
works just fine!
however if someone logs into the site via http://www.mysite.com rather than http://mysite.com they get redirected to log in again... [which is fine - I understand] but how do I either
- setup drupal to ignore the difference between www and no www
or
- set the link to the search tool so that drupal does not care [i.e. as a node]
right now the link is "http://mysite.com/?q=searchdb" the "views path" = "searchdb" , while the menu setup indicates that I can use "searchdb" as the link path ... it does not work.
-help
Comments
clarify
sorry let me clarify :
"however if someone logs into the site via http://www.mysite.com rather than http://mysite.com they get redirected to log in again... [which is fine - I understand] but how do I either "
if the user clicks on the navigation menu item for the custom search, then they get redirected .
Edit your .htaccess file
Even if you weren't having these login problems, it would be a good idea to configure your site to redirect all traffic to either the www.yoursite.com or yoursite.com. Having two versions that traffic can go to harms your SEO ranking. You can do this by altering your .htaccess file. Go to http://tips.webdesign10.com/basic-drupal-seo-on-site-optimization and scroll down to the Drupal Rewrite Rules section. That tells you how to fix your .htaccess file so you can have all traffic go to one desired address. I followed it and it works beautifully for me. If you have all traffic go to yoursite.com, then that should solve your login redirect problems.
.htaccess
yes - I had thought of using a rewrite rule in the apache config, but I wanted to see if there was a "Drupal proscribed" way to do this first since I consider .htaccess to be a bit of a hack.