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.

Installing SilverStripe /

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

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

Friendly URLs are not working


Go to End


7 Posts   4415 Views

Avatar
wizzofoz

Community Member, 9 Posts

24 November 2009 at 9:09am

Edited: 24/11/2009 9:26am

After starting Silverstripe the first time I get the configuration page (install.php).
When I submit this page after a few seconds I see the following message:

Checking that friendly URLs work... 
Friendly URLs are not working. This is most likely because mod_rewrite isn't configuredcorrectly on your site. Please check the following things in your Apache configuration; you may need to get your web host or server administrator to do this for you:
mod_rewrite is enabled
AllowOverride All is set for your directory

Extra info: installed on Windows 2003 Server / IIS 6 / PHP / FastCGI / ISAPIRewrite (free version)

Avatar
Sean

Forum Moderator, 922 Posts

24 November 2009 at 9:12pm

The installer won't detect you're using a third-party URL rewriting module.

Once this message occurs, are you able to browse to the installed SS copy and see if it works anyway?

http://localhost/silverstripe/dev/build?flush=all

Sean

Avatar
wizzofoz

Community Member, 9 Posts

25 November 2009 at 6:48am

Edited: 25/11/2009 6:53am

No Sean, I cannot access that page (Page Not Found)

I can run rewritetest.php but this gives the following message:

mod_rewrite doesn't appear to be working. Make sure:
mod_rewrite is enabled in your httpd.conf
AllowOverride is enabled for the current path.

Avatar
wee-man

Community Member, 21 Posts

25 November 2009 at 10:10pm

Hello,

by default Silverstripe uses the .htaccess to define rewrite rules.
But this is only working automatically with the Apache webserver.

You have to define the rewrite rules for your rewrite engine by hand.
For that have a look in the ISAPIRewrite documentation.

Your can find the required rewrite rules in your Silverstripe root directory in the .htaccess file.

Greetings

Avatar
Sean

Forum Moderator, 922 Posts

25 November 2009 at 10:12pm

Edited: 25/11/2009 10:15pm

The only thing I can think of is that your rewrite module isn't working properly.

There's a part in the installer that does an AJAX request to InstallerTest/testrewrite which is generic for any rewriting capability - so this means it'll work for the IIS 7 rewrite module, Apache mod_rewrite or ISAPIRewrite if it's setup correctly.

I'm not too familiar with ISAPIRewrite and installing SS on IIS 6, as I've only installed and used SS on IIS 7 and IIS 7.5.
I assume ISAPIRewrite uses some form of .htaccess file for configuration?

EDIT: Just came across this URL, might be of some help: http://cubiksoundz.blogspot.com/2008/12/tech-note-installing-silverstripe-cms.html

Sean

Avatar
wizzofoz

Community Member, 9 Posts

26 November 2009 at 8:35am

Well ... I've found the solution.

Forget about IIS and install WAMP, up and running within 5 minutes :-)

Avatar
Sean

Forum Moderator, 922 Posts

26 November 2009 at 9:20am

That's one way - IIS 7 with the MS URL rewriting module appears to work pretty well. However, that requires at least Windows Server 2008 I believe.

Sean