After installing the Zend framework, both the Zend website and the books I'm using said to set up a .htaccess file. They all differ slightly on what to include, but the main point of agreement seems to be that Zend works best without the long ".php?var1=x&var2=y" thing that php normally uses, and replace it with Wikimedia-style urls. The example from my book is:
- Code: Select all
RewriteRule !\.(js|gif|jpg|png|css)$ index.php
The problem is that when I have a .htaccess file, it interferes
- Code: Select all
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, email@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
The first time I tried this, there was a problem with the .htaccess file in the error log.
So I Googled it, opened the two httpd.config files in xampp. "LoadModule rewrite_module modules/mod_rewrite.so" was already uncommented somehow in both, so I changed AllowOverwrite from "None" to "All."
I still had no luck, an figured that maybe the version of XAMPP I was using was deprecated, so I deleted it an installed it again, still nothing.
Now I get the same error message when I have a .htaccess file, but the error log comes up blank.
And to be clear on another detail that came up on these forums: I'm using JEdit, which has Unix linebreaks as the default.
Does anybody have any idea what my problem is? It seems suspicious that "LoadModule &c" was already uncommented, so maybe the advice I found on fixing the .htaccess problem for Windows doesn't work on Mac (though if Apache is supposed to be platform neutral, that seems a bit strange).
I'd greatly appreciate any advice on this matter.