on choosing your own shotened link

56 views
Skip to first unread message

alfonso

unread,
Jun 28, 2011, 10:37:11 AM6/28/11
to Google Apps Labs Short Links
Does this app provide for making personalized short urls? Let me
explain:
Everything we trade in our company gets an ID number, and we would
like to know if we can shorten something like this

http://www.erapanama.com/Home/tabid/102/Panama-Real-Estate/View/Property/4284/Playa-Blanca-Founders-Panama-Condo-for-Sale.aspx

into this:

http://www.erapanama.com/110418AVBC01

Is this possible?

Jens Scheffler

unread,
Jun 28, 2011, 12:52:22 PM6/28/11
to Google Apps Labs Short Links
Hi,

Yes, that is actually the main purpose of the app. However, you would
probably need to use another subdomain for the short link, e.g.
http://goto.erapanama.com/110418AVBC01

Best regards,

Jens

On Jun 28, 7:37 am, alfonso <alfo...@properties-in-panama.com> wrote:
> Does this app provide for making personalized short urls? Let me
> explain:
> Everything we trade in our company gets an ID number, and we would
> like to know if we can shorten something like this
>
> http://www.erapanama.com/Home/tabid/102/Panama-Real-Estate/View/Prope...

Bob Parker

unread,
Jun 28, 2011, 3:42:25 PM6/28/11
to google-apps-la...@googlegroups.com
Actually, it could be done with the same domain, if you use an apache
server and some mod_rewrite magic :)

For example, in the apache config or .htaccess file in combination with an
actual short links subdomain setup as you described:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
# assumes /whatever is the short-link
# change 301 to 302 for temporary redirect vs permanent
RewriteRule (.*) http://goto.erapanama.com/$1 [R=301,L]

I use something similar to this to allow for both base domain &
www.{domain} processing to work with short links when I don't use other
services on Google.

Bob Parker
b...@perldevgeek.com

>--
>You received this message because you are subscribed to the Google Groups
>"Google Apps Labs Short Links" group.
>To post to this group, send email to
>google-apps-la...@googlegroups.com.
>To unsubscribe from this group, send email to
>google-apps-labs-sho...@googlegroups.com.
>For more options, visit this group at
>http://groups.google.com/group/google-apps-labs-short-links?hl=en.
>


Jorge Puente Sarrín

unread,
Jun 28, 2011, 1:05:00 PM6/28/11
to google-apps-la...@googlegroups.com
Hi,

if you want to keep using your domain, I suggest you use 'lilurl' in a folder and customize it; for example using a folder named "go":

http://erapanama.com/go/110418AVBC01

Link: lilurl.sourceforge.net


2011/6/28 Jens Scheffler <scheff...@google.com>
--
You received this message because you are subscribed to the Google Groups "Google Apps Labs Short Links" group.
To post to this group, send email to google-apps-la...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-labs-sho...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-labs-short-links?hl=en.




--
Regards.
Jorge Puente Sarrín.

Jorge Puente Sarrín

unread,
Jun 28, 2011, 9:40:23 PM6/28/11
to google-apps-la...@googlegroups.com
Great contribution, Bob!

lilurl is useful if you want to avoid editing the file. htaccess and manage your short links in a database.

Anyway, I suspect that Alfonso is using IIS; and ISAPI_Rewrite would be very useful

* http://www.helicontech.com/isapi_rewrite/doc/

2011/6/28 Bob Parker <b...@perldevgeek.com>



--
Atte.
Jorge Puente Sarrín.

Bob Parker

unread,
Jun 29, 2011, 12:41:20 PM6/29/11
to google-apps-la...@googlegroups.com


From: Jorge Puente Sarrín <puente...@gmail.com>
Reply-To: <google-apps-la...@googlegroups.com>
Date: Tue, 28 Jun 2011 20:40:23 -0500
To: <google-apps-la...@googlegroups.com>
Subject: Re: Short Links Re: on choosing your own shotened link

Great contribution, Bob!

lilurl is useful if you want to avoid editing the file. htaccess and manage your short links in a database.

If using mod_rewrite (or ISAPI_Rewrite) you don't have to keep short links in a db. the First two RewriteCond lines check to see if the %{REQUEST_FILENAME} exists in the file path as either a file or directory. If not, then it's assumed to be a short link name, and the URL is redirected to the short link server.

I use this particular rewrite rule constantly, but in reverse, to pass through existing files but redirect non-existing files to an alternate location.

Anyway, I suspect that Alfonso is using IIS; and ISAPI_Rewrite would be very useful

* http://www.helicontech.com/isapi_rewrite/doc/

Reply all
Reply to author
Forward
0 new messages