hello,
I am now at the stage where 90% of my files are uploaded.
I have a few of them in which I am passing the variable in the address bar.
as a consequence I'd like to use the url rewrite to make the url more friendly.
In a .htaccess that I have placed in the folder "repertoire" I am using the following code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule prizes(.*)\.htm$ /repertoire/prizes2.php?type=$1
RewriteRule prizes(.*)-(.*)-(.*)\.htm$ /repertoire/prizes3.php?id_gifts=$1&=$2&type=$3
RewriteRule prizes(.*)\.htm$ /repertoire/tpl/prizes.tpl.php?id_gifts=$1
RewriteRule prizes(.*)-(.*)-(.*)\.htm$ /repertoire/tpl/prizes.tpl.php?id_gifts=$1&type=$2&redeem=$3
and in my php files the href links are like these ones:
prizes2.php?type=1
or
prizes.tpl.php?id_gifts=75&type=1&redeem=2
the problems are:
can anyone point me in the right direction please?
ps: in this htaccess I can turn register_global on/off and the error 404 redirection works. so I guess that the AllowOverride is ok.
thanks for your help.
A.