Ok, it seems so easy in principle!
I am trying to use mod_rewrite on my test machine - Windows XP, running Apache 1.3.23, PHP 4.1.1, MYSQL 3.23.27.
I have follwed a tutorial I found on the net but instead of getting the desired results I get a 400 Bad Request page.
The idea is that I request a file 'test.html' and get the page showing the contents of 'test.php'.
On the Apache side, I have uncommented
and
in the httpd.conf file.
The .htaccess file reads
I have run a phpinfo page and cannot find mod_rewrite listed as a module so I suspect the problem lies there.
Please, can anyone offer any suggestions?
Many thanks in anticipation.
I am trying to use mod_rewrite on my test machine - Windows XP, running Apache 1.3.23, PHP 4.1.1, MYSQL 3.23.27.
I have follwed a tutorial I found on the net but instead of getting the desired results I get a 400 Bad Request page.
The idea is that I request a file 'test.html' and get the page showing the contents of 'test.php'.
On the Apache side, I have uncommented
Code:
LoadModule rewrite_module modules/mod_rewrite.so
Code:
AddModule mod_rewrite.c
The .htaccess file reads
Code:
RewriteEngine On
RewriteRule ^/?test\.html$ test.php [L]
I have run a phpinfo page and cannot find mod_rewrite listed as a module so I suspect the problem lies there.
Please, can anyone offer any suggestions?
Many thanks in anticipation.