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

Site not working without index.php


Go to End


4 Posts   1469 Views

Avatar
Sreek

Community Member, 5 Posts

7 August 2016 at 11:50pm

Edited: 08/08/2016 8:48am

I have this test link at http://109.75.163.22/~barrel12/index.php/about-us/ . When I remove "index.php" the site doesn't load properly. I tried adding "RewriteBase /~barrel12" to ".htaccess" file, but that didn't work either. What am I missing here?

Avatar
swaiba

Forum Moderator, 1899 Posts

8 August 2016 at 6:22pm

the index.php fakes the mod_rewirte sending everything to main.php. I'm not able to help that much more, but you are onthe right path to ensure url rewriting is happening correctly.

Avatar
Sreek

Community Member, 5 Posts

8 August 2016 at 6:29pm

@swaiba - thanks for the reply.

Avatar
Mo

Community Member, 541 Posts

9 August 2016 at 1:35am

Are you using the .htaccess file that comes with the Silverstripe Installer (there is an up to date version here: https://github.com/silverstripe/silverstripe-installer/blob/3.4.0/.htaccess)?

If so then you may find that Mod Rewrite is disabled on your hosting (might be worth contacting your hosting provider or checking your apache config)?

Mo