Jump to:

22979 Posts in 11815 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » change standard url

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: 636 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    change standard url Link to this post

    Hi!
    I need rewrite Silverstripe url.
    For example I have:
    http://10.0.0.1/miosito/f1/f2?a=title&id=123
    F1 and f2 are real page in my Silverstripe's tree in admin area.
    I nees rewrite yrl in this way:
    http://10.0.0.1/miosito/f1/f2/title/123
    In this case title and 123 are not real page in my Silverstripe's tree in admin area. Is this possible? Where is the exact piont in witch Silverstripe decide that my url is not correct and show error page? Thanks!

  • ekersten
    Avatar
    Community Member
    16 Posts

    Re: change standard url Link to this post

    The Director class should be of help in this case

    http://doc.silverstripe.org/sapphire/en/reference/director#custom-rewrite-rules

    Basicaly, the default action of the f2 page should read the url parameters and act in consecuence.

    636 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.