ryancramerdesign / ProcessWire-2.0

THIS IS AN OLD VERSION. Get the new one at the URL below:
https://github.com/ryancramerdesign/ProcessWire
GNU General Public License v2.0
39 stars 5 forks source link

mod_rewrite check failing without function apache_get_modules() #21

Closed jmarjie closed 13 years ago

jmarjie commented 13 years ago

mod_rewrite check failing without function apache_get_modules(). Patch attached.

diff --git a/htaccess.txt b/htaccess.txt index 11bc142..0ccbd9f 100644 --- a/htaccess.txt +++ b/htaccess.txt @@ -4,7 +4,17 @@

Options -Indexes Options +FollowSymLinks -RewriteEngine On + + +

ryancramerdesign commented 13 years ago

Thanks for posting this. I like this solution. I will make this update and test locally. It looks like this will solve the problem with the mod_rewrite check when PHP is running as cgi.

Do you know if SetEnv is fairly universal, or do we need to add any kind of check that Apache will let us do it first? I had problems with another similar type of setting (php_flag and php_value), where I discovered that it would cause some servers to throw a 500 error ... which apparently can be solved with a check. I also haven't seen SetEnv in any other CMS htaccess files (though only looked at a few).

Thanks, Ryan

jmarjie commented 13 years ago

From what I have seen on the net and the Apache docs SetEnv has been available starting with version 1.1. When I was looking around for a resolution to the mod_rewrite issue someone mentioned that this would be a robust solution. I am not sure how other CMSs handle this as I have not thumbed through many of them more then briefly.

ryancramerdesign commented 13 years ago

closing this issue since your solution was added to PW a few weeks ago. thanks for your help.