FigMaDesign Posted February 21, 2007 Share Posted February 21, 2007 Hi! I´m about to complete my first template system for my new site, release in april, but I can't get my mod_rewrite to work properly. The server responds with a server error *500: localhost 02/21/07 00:38:37 Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.1 I´ve been looking for a code that will solve my problems but eventhough I´ve read the documentation and several posts in this forum, I can't find the answere to my problem. RewriteEngine On RewriteCond %{REQUEST_URI} !^/css/ RewriteCond %{REQUEST_URI} !^/images/ RewriteCond %{REQUEST_URI} !^/system/ RewriteRule ^([a-z0-9-]+)/([a-z0-9-]+)/?$ index.php?template=$1&id=$2&%{QUERY_STRING} [nc] RewriteRule ^([a-z0-9-]+)/?$ index.php?page=$1&%{QUERY_STRING} [nc] RewriteBase test/ Thats the code I´m using -> all there is in .htaccess My local server goes wit URL http://localhost/ and the page is located in sub-folder "test" -> Http://localhost/test Why does it keep showing errors? please help! B.R // Daniel Link to comment https://forums.phpfreaks.com/topic/39385-mod_rewrite-keeps-showing-server-error/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.