Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » how to modifing the Base URL ?

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: 2264 Views
  • roterl
    Avatar
    Community Member
    44 Posts

    how to modifing the Base URL ? Link to this post

    Hi
    I have the www root to "/www/" and the SS installed in "/www/SilverStripe"
    when accessing to http://<domain>/SilverStripe" everything work ok, but I want the access will be from the root ("http://<domain>/")

    I set the .htaccess file, and accessing the root return the SS home page.
    The problem is that all the SS links are relative to the SS dir so they redirect back to "http://<domain>/SilverStripe/..."
    Is there any way to modify this ? (I can not install the SS on the root dir)

    thanks,
    Rotem.

  • jaytay
    Avatar
    Community Member
    15 Posts

    Re: how to modifing the Base URL ? Link to this post

    Having same issue! Though I believe i have permission to install in the root though and wondering if thats what I should have done. Not really keen on having the word /silverstripe/ in my urls

  • spenniec
    Avatar
    Community Member
    37 Posts

    Re: how to modifing the Base URL ? Link to this post

    Jaytay,
    If you have permissions to the root directory then copy the contents of your silverstripe directory to there and SS will serve the pages. You won't need to re-install.

  • jaytay
    Avatar
    Community Member
    15 Posts

    Re: how to modifing the Base URL ? Link to this post

    Awesome, it worked. Thanks for your help! Should probably change the install documentation to let people know this as it makes it seem as if you HAVE to install in a separate dir off the root

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: how to modifing the Base URL ? Link to this post

    Is there anyone who has Silverstripe running in the setup the original poster described ? We currently have a site running that way (cannot install in root since we are integrating Silverstripe into an already existing website) , but cannot get Silverstripe to run stable ......

    See my other thread :
    http://www.silverstripe.com/site-builders-forum/flat/48702

  • txf
    Avatar
    Community Member
    2 Posts

    Re: how to modifing the Base URL ? Link to this post

    I follow the tutorials to build my first site, today i deploy it to the internet, it works.
    1, modify the follow line in .htaccess file:
    RewriteBase /silverstripe-v2.2.2
    to
    RewriteBase /
    2, move to root directory:
    replace the wamp\www directory's contents with wamp\www\silverstripe-v2.2.2

    don't forget to modify the http and mysql service as autorun in the service control panel.

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: how to modifing the Base URL ? Link to this post

    That is not the problem ; we cannot run Silverstripe in the root.

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