Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » directing / access to a page

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 3010 Views
  • lekonna
    Avatar
    Community Member
    3 Posts

    directing / access to a page Link to this post

    I've got a rather silly problem,

    I've got silverstripe set up on my server in the root dir, how do i get the

    www.myhost.com/ to point to a silverstripe page ? So far i've managet only
    get myhost.com/subpage/ type of access to work.

    I tried browsing through the documentation, but unfortunately i seem to suck at defining the search terms for this particular issue.

    so under my SilverStripe CMS i've got a hierarchy
    sitecontent
    |
    +start
    |
    +page1
    |
    +page2
    ..

    i'd like to get the www.mysite.com to get the start page by default. Any help including RTFM with link to the proper manual is greatly appreciated.

    Best Regards,
    lekonna

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: directing / access to a page Link to this post

    what happens when you go to http://mysite.com/

    if you get the install page, then it is a cache issue.

  • lekonna
    Avatar
    Community Member
    3 Posts

    Re: directing / access to a page Link to this post

    mysite.com gives me the 404 page.

    i'm fiddling around with adding regexp that catches empy uri path or index.html in the .thaccess
    and redirects it to main.php?url=start but it doesn't seem like the correct way to go.

    i think the cms can handle root domain accesses like this like a champ, just that i cannot get
    my head around how to set it up properly.
    br,
    leko

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: directing / access to a page Link to this post

    what is your server there?

    sometimes this happen if you have not allowed the .htaccess from the server's main httpd.conf. Make sure you have allowoverride option in the httpd.conf

  • lekonna
    Avatar
    Community Member
    3 Posts

    Re: directing / access to a page Link to this post

    Ok i'll check,

    to which page should it go by default if i omit the rest of the url? And how do i change that
    or alternatively how do i create the / page.

    br,
    lekonna,
    thanks for answering

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