Jump to:

18591 Posts in 4875 Topics by 2285 members

General Questions

SilverStripe Forums » General Questions » Problem displaying web with localhost/index.php

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba

Page: 1
Go to End
Author Topic: 312 Views
  • Josua
    Avatar
    Community Member
    81 Posts

    Problem displaying web with localhost/index.php Link to this post

    I installed WampServer on my computer to create my website.
    I installed SilverStripe in c:/wamp/www
    If I type 'localhost' in the webbrowser, default page (blackcandy) is normally displayed, however, if I type 'localhost/index.php' the page is displayed without format.
    If I do the same on a remote web server both forms (www.dominio.com or www.dominio.com/index.php) show the page properly.
    Is this normal?
    Do I have to configure WAMP in any special way?
    I have already enabled Apache rewrite_module.

    Attachment 2 pictures that you see all this.

    Thanks.

    Regards,

    Jose A.

    Attached Files
  • Pigeon
    Avatar
    Community Member
    229 Posts

    Re: Problem displaying web with localhost/index.php Link to this post

    The index.php link will be adding that too the bare tag in the html, thus breaking your assets links.

    You shouldn't be running with index.php, you can add a rewrite rule to the .htaccess to stop index.php working.

  • Josua
    Avatar
    Community Member
    81 Posts

    Re: Problem displaying web with localhost/index.php Link to this post

    Thank you for your answer.
    But why it works when a remote server?
    What rewrite rule should add to the file .htaccess?

    Thanks.

    Regards,
    Jose A.

  • Josua
    Avatar
    Community Member
    81 Posts

    Re: Problem displaying web with localhost/index.php Link to this post

    Hello all,

    Nobody knows the answer?

    Thanks,
    Jose A.

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