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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Is index.php used for something?


Go to End


7 Posts   1056 Views

Avatar
Josua

Community Member, 87 Posts

4 February 2012 at 12:40am

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

Forum Moderator, 1899 Posts

4 February 2012 at 12:43am

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

Community Member, 87 Posts

4 February 2012 at 2:09am

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

Forum Moderator, 1899 Posts

4 February 2012 at 2:25am

Sorry I don't understand the question...

Avatar
Josua

Community Member, 87 Posts

4 February 2012 at 2:42am

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

Forum Moderator, 1899 Posts

4 February 2012 at 2:47am

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

Community Member, 87 Posts

4 February 2012 at 4:23am

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

Thank you very much for your time.

Regards,
Jose A.