...

Comments

callison’s picture

Have you tried using actions and triggers?

  1. Make sure that the trigger module is enabled under the core (optional) drupal modules
  2. Download and enable the Triggerunlock module
  3. Go to "admin/settings/actions" and create the advanced action 'Redirect to URL' putting in your desired URL, etc
  4. Go to "admin/build/trigger/user" and on the "Trigger: After a user has logged out" fieldset, select the action you just created

Hope this helps.

soezkan’s picture

The Triggerunlock-Module and the Trigger-Module are cool!
And I made it the recommended way and it works :)


Supposing I want to redirect on a certain page if the
query of the url is empty, like:

http://www.mydomain.com/q=

or

http://www.mydomain.com/

I tried it with the splash module but I can't manage
to make it work.

Any ideas?

Thanks a lot!

Best,
Soezkan

callison’s picture

I don't understand what you mean. Would you please explain a little more - do you want them to be redirected as soon as they go to that URL or something? More details would be helpful. Thanks.

soezkan’s picture

...

soezkan’s picture

I don't want to land on the frontpage when I open my website, but I want
to immediatly redirected to another node.

Maybe it was a beginners mistake, but I configured my drupal installation
to have a certain node (node/62) which is my start page. So the
according link in the main menu is highlighted (plus a submenu
collapses) when this node is open.

How can I achieve a redirect to "node/62" when somebody comes to my
website the first time? I don't want to see the visitor the frontpage but
this particular node!!!

Thank you so much for a hint!

Best,
Soezkan

WorldFallz’s picture

Please don't post duplicate threads. I've deleted the dupe, thanks.

soezkan’s picture

yes okay. But how can I manage to make my own startpage instead of
using the frontpage?

callison’s picture

anthonylicari’s picture

If you've already created some other page that you want redirected to when you hit the front page then you need to change that in the .htaccess file. Unless the frontpage module has features that you need there's no reason to install a module when one tiny line of code can solve the problem.

jpshayes’s picture

callison’s picture

That's a much simpler solution than mine. Good call.

anthonylicari’s picture

If you're looking to make a site wide redirect for whenever the /logout url is hit just redirect it in your .htaccess file with:

RewriteRule ^logout logout?destination=whatever/your/new/path/is [nc]