Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grrrr! Mod_flippin_rewrite!!!

Status
Not open for further replies.

EvilAsh

Technical User
Oct 22, 2005
56
GB
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
Code:
LoadModule rewrite_module modules/mod_rewrite.so
and
Code:
AddModule mod_rewrite.c
in the httpd.conf file.

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.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top