By Amstram on
Hi,
I'm looking for a way to print the url of certain content types.
Similar to the way dribbble.com shows a short link to each 'shot'
The first and easiest solution i'm looking for is to have the node id (numerical) : website.com/nid
The ideal one would be to use a shortened version of the domain name (which i already own) and the node id : wb.st/nid
Or to let users choose the url with a token : website.com/token
Any ideas ?
Comments
A non-SEO friendly technique
A non-SEO friendly technique would be to use mod_rewrite to Redirect from short URL to the long URL, but omitting the R flag so as to prevent the address bar from updating.
I've been playing around with
I've been playing around with it, and it looks like you'll have to use mod_proxy and mod_proxy_http too, unless you don't mind the address bar changing.
Another option could be to use PHP (and mod_rewrite) at your shorturl.tld to pull the content using file_get_contents() something like...
If the address bar changing and loading a new page is OK, this should work too.
Install Pathauto