Jump to:

22977 Posts in 11806 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Page not fully loaded

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 2 3
Go to End
Author Topic: 2109 Views
  • OBITS
    Avatar
    Community Member
    17 Posts

    Page not fully loaded Link to this post

    Hi Forum

    I write because I have some Problems with my website. If I load the website with path example www.example.org/example then all is okay. (Themes, Pictures etc)
    If I change my apache settings to directaccess example www.example.org the website show me only good old html style an now pictures.

    can you help me.
    thx

    OB

    Attached Files
  • cuSSter
    Avatar
    Community Member
    56 Posts

    Re: Page not fully loaded Link to this post

    Hi Obits,

    Hmm, I haven't tried changing Apache settings to direct access like what you did. I assume you're in dev mode right? I have another way though, through .htaccess. Add this line of codes to your .htaccess.

    RewriteRule ^example$ / [L,R=301]

  • OBITS
    Avatar
    Community Member
    17 Posts

    Re: Page not fully loaded Link to this post

    Thx Pinoy_SS for your input... but the problem is, that must make more than one Aliases for this website so i need the apache.

  • cuSSter
    Avatar
    Community Member
    56 Posts

    Re: Page not fully loaded Link to this post

    Oh. Haven't tried that one yet. Just a question, is the URLSegment 'example' is your index/home page?

  • mmh
    Avatar
    Community Member
    24 Posts

    Re: Page not fully loaded Link to this post

    Take a look at your base href (looks currently like "<base href="http://www.example.com/index.php/"></base>"). This is the reason why no images will be displayed on your page. You're also requesting CSS in this way:

    <link rel="stylesheet" type="text/css" href="http://www.example.com/index.php/themes/higherground/css/typography.css?m=1201468536" />


    But Silverstripe can't find these files (if you take a look at the standard htaccess you know what I mean).
    Fix this issue and you'll be able to see your website in the correct way.

  • OBITS
    Avatar
    Community Member
    17 Posts

    Re: Page not fully loaded Link to this post

    Thx Timo, but i am absolutbeginner in php. So what i can see in htaccess is

    ### SILVERSTRIPE START ###
    <Files *.ss>
       Order deny,allow
       Deny from all
       Allow from 127.0.0.1
    </Files>

    <Files web.config>
       Order deny,allow
       Deny from all
    </Files>

    <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /schrittederHoffnung
       RewriteCond %{REQUEST_URI} ^(.*)$
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
    </IfModule>

    ### SILVERSTRIPE END ###

    so what i is to correct?

  • OBITS
    Avatar
    Community Member
    17 Posts

    Re: Page not fully loaded Link to this post

    Maybe intressting, when i correct define('BASE_SCRIPT_URL','index.php/'); to define('BASE_SCRIPT_URL',''); i have the my website layout, but the website functioned not

  • mmh
    Avatar
    Community Member
    24 Posts

    Re: Page not fully loaded Link to this post

    Change

    define('BASE_SCRIPT_URL','index.php/');


    to

    define('BASE_SCRIPT_URL','/');

    2109 Views
Page: 1 2 3
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.