On some websites, adobe.com for example, if you type in http://www.adobe.com/dowload, it seems to bring you to http://www.adobe.com/download . How can i do that with my Drupal website?

Comments

nevets’s picture

Since the paths look the same to me, it is not clear what you are trying to redirect from and to.

fikelfikel’s picture

It is like if people do not know what address your download page is, and the go to www.example.com/player/download.php, and the origional page is www.example.com/mediaplayer/download.php, the site will want to re-direct the person that goes to www.example.com/player/download.php to www.example.com/mediaplayer/download.php . Do you get me?

cog.rusty’s picture

This can be done in your .htaccess file with a line like:

Redirect 301 /player/download.php http://www.example.com/mediaplayer/download.php

Or, with:

RewriteEngine On
...
RewriteRule ^player/download.php$ /mediaplayer/download.php [R=301,L]
fikelfikel’s picture

Thank you for your helpful comment! But... do you open .htaccess in a text editor? And where exactly do you but that code?

cog.rusty’s picture

Yes, you open .htaccess with a text editor.

The first one can go anywhere, the second one can go after the already existing RewriteEngine On line.

fikelfikel’s picture

Although, maybe this handy tool might do the trick for me. I just looked up htaccess in the modules section here and i found this : http://drupal.org/project/toggle_www

cog.rusty’s picture

If you open .htaccess with a text editor you will see a comment explaining how to do the "www." thing.

fikelfikel’s picture

Thanks for all the help. It is well appreciated. Thanks very much. :-)