This is a discussion on aaargh - mod_rewrite again... within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi all. On my test-server (fedore core 3, Apache 2.0.53, PHP 4.3.11) this ..htaccess file: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all.
On my test-server (fedore core 3, Apache 2.0.53, PHP 4.3.11) this ..htaccess file: DirectoryIndex index.php RewriteEngine on RewriteRule ^(dk|en|om|article|contact)/?.*$ index.php?var1=$1&var2=$2 works fine. (I'm not using the first two optional matches: 'dk' and 'en', but the next two works fine) But at the hosting-house (Apache/2.0.54 (FreeBSD) PHP/5.0.4) the last optional match ('contact') gives a: "404 Not Found The requested URL /contact/ was not found on this server" It's driving me nuts ... Any idea? Big thanks in advance! Martin |
|
|||
|
Ok - here's something that adds to the mystery ... If I change the
'contact' option to just 'cont', (or anything else) it works fine ... ! Are there reserved words or something like that, when working with mod_rewrite? Best Martin |