hi there,
I've tried to rewrite a rule with mod_rewrite module but it doesn't work.
I followed many tutorials to do that; now, the steps that I use are:
- decomment the module rows on httpd.conf file
LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c
- create an alias and allowoverride in all
Alias "/rewrite/" "D:/archivio/php/rewriting/"
<Directory "D:/archivio/php/rewriting">
Options Indexes FollowSymLinks Includes
AllowOverride All
#Order allow,deny
Allow from all
</Directory>
- create a .htaccess in the directory D:/archivio/php/rewriting that contains the rows
RewriteEngine On
RewriteRule productinfo/([0-9]+) productinfo.php?id=$1
- productinfo.php file with echo $id; just to test.
So, now it should be able to rewrite pointing my browser to http://localhost/rewrite/productinfo/123
but, as I said, it doesn't. And return
Bad Request
Your browser sent a request that this server could not understand.
Apache/1.3.24 Server at localhost Port 80
Any suggestion? I use easyphp 1.6 w apache 1.3.24 on win XP Pro
thanx forum