Forums

Map URLs are changing slightly -- title in the URL

Pages: 1
nic
09/17/09 01:02 PM

Edit Reply Quote Quick Reply
Hi folks,

I'm changing the URL for Maps slightly. Previously, maps were linked to via their "map ID":
http://virtualglobetrotting.com/map/35256/

I've added an additional URL that maps can be found by: their "perma link", which is based on their title:
http://virtualglobetrotting.com/map/christopher-lloyds-house/

The perma link is generated by taking the title, lower casing it, and replacing all non-alpha-numeric characters with "-". The perma link is generated at the time of submission and will change if the title changes.

All links that go to the "map ID" URL are now 301 redirecting (HTTP permanently moved) to the perma link version. The new URLs look pretty cool and this should help with search engine optimization as well.

Collisions of perma links are avoided by appending "-[n]" to subsequent maps that have the same title, for example:
http://virtualglobetrotting.com/map/christopher-lloyds-house-1/

Not all internal links are updated to use the perma link version, but I will be doing that over the next few days.

Please let me know of any problems.
mlc1us
09/18/09 12:21 PM

Edit Reply Quote Quick Reply
Are we still able to include a map thumbnail in a post as described in "How to post a blog entry to VGT" in the Blog Submissions forum?
mlc1us
Virtual Globetrotting Moderator
nic
09/18/09 12:30 PM

Edit Reply Quote Quick Reply
Yep -- though I don't know if using the "perma link" will work. I'll need to make the map ID visible somewhere on the page. You can get it currently by looking at the URL for Neaby Maps/etc
Pages: 1
Extra information
0 registered and 4 anonymous users are browsing this forum.

Moderator:  nic, TexasAndroid, kjfitz, AlbinoFlea, Hinkkanen, Parabellum, Pdunn, dda, mlc1us, milwhcky, gordonhigh, Xeba73, tallturtle82, Fab, Matheus_ 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Topic views: 3152