Need help with a Linux/Unix soft link

Events happening in the community are now at Drupal community events on www.drupal.org.
hallman's picture

I've got a video at http://nctech4good.org/sites/nctech4good.org/files/webinars/google/index...
I want to create a shorter URL, like http://nctech4good.org/google-webinar
Can I do that? If so, which directory does the link go in and what should the ln -s command look like?

The Website use Linux and multisite hosting.

Judy

Comments

http://bit.ly/pQ8mGh

hallman's picture

I forgot about bit.ly -- I don't usually use it. But http://bit.ly/pQ8mGh works and is OK.

Judy Hallman

cgmonroe's picture

From the URL, I assume that this is a file and not a node...

So, an alternative is to create a page node that uses PhP for it's body, then use the drupal_goto function (see the API docs for details) to redirect to the real file. Use a short URL alias and you're there.

It looks like the file alias

JuliaKM's picture

It looks like the file alias module might do what you want. I don't think that you want to use symbolic links for this.

Thank you!

hallman's picture

Thanks for your suggestions. File alias looks like what I was looking for, though drupal_goto is an interesting approach. I've already set up http://bit.ly/pQ8mGh and that does what I wanted so I think I'll just stay with that.

Judy Hallman

triDUG

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: