Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Problem when changing WAMP "Documentroot" setting in Apache httpd file

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: 2822 Views
  • Blairos
    Avatar
    Community Member
    7 Posts

    Problem when changing WAMP "Documentroot" setting in Apache httpd file Link to this post

    Hi There

    This may be a ridiculously easy fix, but sometimes you cant see the forest for the trees

    I have installed SS 2.2.2 onto a PC running WAMP.

    Everything works great, CMS etc... but when the time arrives for me to "go-live", I want my users to access a root URL, not a URL, then subfolder (such as "silverstripe-v2.2.2")

    I have read the documentation for SS, and it advises on how to change the Documentroot setting, and associated Directory, to "silverstripe-v2.2.2"

    Once I update the httpd file, and restart Apache, I type in "localhost", and get a file not found error...

    Hopefully someone has had the same issue, and a simple fix ensues...

    Thanks in advance

  • simon_w
    Avatar
    Forum Moderator
    467 Posts

    Re: Problem when changing WAMP "Documentroot" setting in Apache httpd file Link to this post

    This is probably due to a RewriteBase in .htaccess.

    Edit .htaccess and change the line:

    RewriteBase /silverstripe-v2.2.2/


    to

    RewriteBase /

    Also, the document root setting must be a full path to the folder.

  • Blairos
    Avatar
    Community Member
    7 Posts

    Re: Problem when changing WAMP "Documentroot" setting in Apache httpd file Link to this post

    Thanks for that - I forgot to menion I was using the full path as the documentation advised...

    In any case, your suggestion worked!

    Thanks!

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