Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

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

Is index.php used for something?


Reply

7 Posts   573 Views

Avatar
Josua

4 February 2012 at 12:40am Community Member, 86 Posts

Hello all!

Is index.php used for something?
With WAMP, localhost/index.php is not working properly.
Index.php in order that it cannot be used must be disabled?
If so, how?

Thanks,
Jose A.

Avatar
swaiba

4 February 2012 at 12:43am Forum Moderator, 1796 Posts

index.php is used to "fake" the URL rewriting that silverstripe requires.
So if you don't have mod_rewrite you can still access everything by using http://localhost/domain/index.php/urlsegment (i think that is the format, but since I use url rewriting i never see this)

Avatar
Josua

4 February 2012 at 2:09am Community Member, 86 Posts

Thank you very much for your answer.
How can I do that I type www.dominio.com/index.php not run index.php, only www.dominio.com?
Should I use .htaccess?
How?

Thanks swaiba,

Regards
Jose A.

Avatar
swaiba

4 February 2012 at 2:25am Forum Moderator, 1796 Posts

Sorry I don't understand the question...

Avatar
Josua

4 February 2012 at 2:42am Community Member, 86 Posts

I want to put in the browser
www.dominio.com/index.php
but then appear in the navigation bar:
www.dominio.com (without /index.php)

and therefore, of course, has not been execute index.php on the server.

That is, although I will type www.dominio.com/index.php the server only run www.dominio.com

You understand?
Sorry for my bad english.

Jose A.

Avatar
swaiba

4 February 2012 at 2:47am Forum Moderator, 1796 Posts

doesn't sound like a problem then - if you have mod_rewrite on (which is seems like you do) then you have no need for index.php
I delete it after installation on mysites

Avatar
Josua

4 February 2012 at 4:23am Community Member, 86 Posts

Ahhhhhh .... Ok.
Then I'll delete it.

Thank you very much for your time.

Regards,
Jose A.