Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am currently setting up a server to give our company a test server (2 man operation).

I am trying to achieve the exact same behavior between the test server and the live server but I am running into a very weird issue and cannot seem to find the cause.

The rewrite rule that I am using is:

RewriteRule ^contact index.php?pageid=11

However it gives an Internal server (500) error. When I change the 'contact' to 'constact' everything works, but I want to use 'contact' of course..
I have the same problem with a rule that tries to redirect 'sitemap'.
Does apache have some kind of reserved words when working with multiple vhosts?
Calling the index.php?pageid=11 directly works perfectly.

I am running Ubuntu Server 10.10, the server is also the SVN server and test server for 6 other virtual hosts. All of those are working just like they should. Other vhosts are using a similar rewriterule (only an extra trailing slash) and are working. Could the port (85) have anything to do with it?

Output of apache2 -v

Server version: Apache/2.2.16 (Ubuntu)
Server built:   Nov 18 2010 21:17:29

And output of php -v

PHP 5.3.3-1ubuntu9.3 with Suhosin-Patch (cli) (built: Jan 12 2011 16:08:14) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
share|improve this question
    
Check PHP's logs (enable if necessary) to see why it's bailing. Error 500 almost always means that PHP didn't return anything to Apache, which usually means a crash or something similar. –  Chris S Mar 21 '11 at 15:29
    
Well I know that script is working, there is some kind of crash because I am using contact in stead of constact –  gnur Mar 22 '11 at 8:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.