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

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

Curse of the dreaded 'Friendly URL's' ... ?

Go to End

8 Posts   3043 Views


Community Member, 63 Posts

22 February 2014 at 11:09pm

Hi, really hoping someone can help. I've been working on this issue for well over a week now with not so much a smidgeon of luck, and I'm now seriously behind schedule and in danger of losing a client. I've searched and searched and searched and tried everything I've come across and nothing is helping at all.

The problem stands thusly:
Fresh install of SS 3.1.2 ... home page (and all other pages) come up with 'page not found' unless /index.php is added to the url.

Themes ARE working ... in the source code they're linked correctly without '/index.php/' in the link, so friendly url's must be at least PARTIALLY working right??? (though I have

in the config.php - prior to adding that the themes were working on the home page but NOT on but since adding that they work there too)

I tried flushing the cache but when I add ?flush=1 or ?flush=all it asks me to log in and when I enter login credentials it then comes up with

Action 'eurl.axd' isn't available on class MemberLoginForm.

Server is windows hosted with
I have about 8 other sites build with various version of SS on the same server and they all work fine, so the server environment must be sufficient.

There is a silverstripe-cache folder in the root directory.

I've had problems similar in the past that led back to issues with .htaccess but I've checked the .htaccess file against all other I have on the same server and as far as I can tell it seems fine (I'm not terribly great with all this stuff... I'm but a lowly visual designer with a general knack for figuring out how to solve technical issues ... usually)

I'm really tired and stressed now and cannot remember what other vital information might be needed in order to solve this problem but I hope someone can please please please please help ....

Oh ... and my .htaccess file looks like this:

<Files *.ss>
	Order deny,allow
	Deny from all
	Allow from

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

ErrorDocument 404 /assets/error-404.html
ErrorDocument500 /assets/error-500.html

<IfModule mod_alias.c>
	RedirectMatch 403 /silverstripe-cache(/|$)
	RedirectMatch 403 /vendor(/|$)
	RedirectMatch 403 /composer\.(json|lock)

<IfModule mod_rewrite.c>
	RewriteEngine On

	RewriteCond %{REQUEST_URI} ^(.*)$
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_URI} !\.php$
	RewriteRule .* framework/main.php?url=%1 [QSA]

	RewriteCond %{REQUEST_URI} ^(.*)/framework/main.php$
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteRule . %1/install.php? [R,L]



Community Member, 86 Posts

26 February 2014 at 9:00am

Edited: 26/02/2014 9:26am

Hi Scorpiankh,

When you say Windows hosting, do you mean Apache on Windows, or IIS on Windows? The eurl.axd error seems to bring back errors regarding IIS.

edit: I should mention that if you are using IIS, then changing the .htaccess rules won't do anything as they are only for Apache. You'd need to change the web.config file for IIS to pick up on rule changes.


Forum Moderator, 267 Posts

26 February 2014 at 9:47am

Can you let us know if it is running on IIS (Windows web server) or Apache (open source web server). The answer to your question will be different depending on the type of technology you are on.

If you are on IIS the .htaccess file will have no effect as that is only for apache.

If you are on apache 2.2 you'll need to ensure in the httpd.conf file that "AllowOverride All" is set.

If you are on Apache 2.4 you need to add a little more to the httpd.conf file -> see this forum post with the fix there:

Hope that points you in the right direction.


Community Member, 63 Posts

26 February 2014 at 9:51pm

Well that would make sense then, I'm pretty sure the webhosts servers run on IIS ...
What would I need to change in the web.config?


Forum Moderator, 267 Posts

27 February 2014 at 5:03pm

I'm not an IIS user unfortunately (I keep things open source) but you might find some information here around the friendly URL setup under IIS (note that is for IIS7 it's going to depend on what you have).


Community Member, 63 Posts

28 February 2014 at 10:31am

Thanks for the reply. I had a look through the info on that link but that all seems to point to server-side settings etc, which I don't have access to. I've emailed the webhosts to see if they can help or shed some light on the situation but don't expect a reply from them anytime soon, they're a bit slow.
Given that I already have a half dozen other SIlverStripe websites running on the same server though, I would think that would be an indication that the server settings are sufficient to what is needed for SS to work properly?


Community Member, 63 Posts

28 February 2014 at 3:51pm

I heard back from the webservers, they confirmed that yes they do use IIS, but also said that .htaccess should still work on their servers.
Then they went and had a look and came back to me with "Well, we can't find anything that would be causing the problem at our end, and we had a look at the website and it's working fine with no 'page cannot be found' errors"
At which point I went back and had a look to find that yes, suddenly the site is miraculously working exactly as it should.
Would have been nice to have known what the problem was, but oh well. Long as it's working.

Thanks for the replies and help anyways


Forum Moderator, 267 Posts

28 February 2014 at 5:24pm

No problem, hope the project comes out well. Post up a link on twitter or somewhere once your project is live :)