Jump to:

22997 Posts in 11620 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » mysite.com/AnyCountry - eg - not using /home/show/counry

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 274 Views
  • Futureweb
    Avatar
    Community Member
    232 Posts

    mysite.com/AnyCountry - eg - not using /home/show/counry Link to this post

    Hi all,

    I'm setting up a new website listing cycle hire locations, and would like the url to be like mysite.com/new_zealand/wellington/

    (I have a database of countries and regions set up)

    I could do mysite.com/home/show/new_zealand/wellington - but this isn't as easy for the user to remember, or as good for SEO as the first folder 'home' and 'show' names are important for SEO but have no meaning here.

    does anyone know if there is a way of doing this - i'd prefer not to set up pages in the admin for each country/region of the world!

  • Futureweb
    Avatar
    Community Member
    232 Posts

    Re: mysite.com/AnyCountry - eg - not using /home/show/counry Link to this post

    using .htaccess i managed to shorten 'mysite.com/home/show/newzealand' to 'mysite.com/countries/newzealand' which is better... if not quite perfect!

    274 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.