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.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Mod_rewrite fix for some Apache servers. (Try this if rewrite doesn't work even if your server has mod_rewrite)


Go to End
Reply

10 Posts   5531 Views

Avatar
Jagged

28 July 2007 at 9:32pm Community Member, 2 Posts

Replace the Defaults:

RewriteRule \.js$ - [L]
RewriteRule \.css$ - [L]
RewriteRule \.png$ - [L]
RewriteRule \.jpg$ - [L]
RewriteRule \.gif$ - [L]
RewriteRule \.php$ - [L]

with:

RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$

They are functionally equivalent (to my knowledge), the later works on a wider range of Apache versions.

Avatar
Andy

31 July 2007 at 10:52am 230 Posts

Thanks, I'll look into using this instead for the installer.

Avatar
Tim

31 July 2007 at 3:25pm Core Development Team, 201 Posts

Cheers for the Patch Jeremy :-)

Avatar
Hansa

5 August 2007 at 1:27pm 10 Posts

I've managed to get SS working on one of my servers but on another one it gives me the usual:

mod_rewrite is enabled in your httpd.conf
AllowOverride is enabled for the current path.

How do i apply this patch?

Avatar
Sean

5 August 2007 at 2:45pm Forum Moderator, 921 Posts

You should be able to do the above change in the .htaccess file where SS is installed.

Cheers,
Sean

Avatar
Hansa

6 August 2007 at 5:15am 10 Posts

I think the problem is the AllowOverride, how do i turn this on?

Avatar
Hansa

6 August 2007 at 8:56am (Last edited: 6 August 2007 9:01am), 10 Posts

I have finished my first site, www.macgregorforestandgarden.co.uk :)

What kind of comment do i add to .htaccess for AllowOverride?

Does it have to be specific?

Avatar
Andy

6 August 2007 at 12:10pm 230 Posts

AllowOverride is configured in the httpd.conf file, not in the .htaccess. If you don't have access to it, you'll have to contact the server administrator.

Go to Top