Like many others, I am having trouble doing very simple mod_rewriting in apache.
I have the following in my .htaccess:
Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteRule ^view/([0-9]+)/([0-9]+)$ view.php?advertId=$1&publisherId=$2 [NC,QSA,L]
What is supposed to be translated / viewed / 4093/203? qs = val → /view.php?advertId=4093&publisherId=203?qs=val
Now it works when called with / View ..., but when executing line / views it redirects to the desired file, but advertId and publisherId are not installed in my PHP script, as it happens with the first -letter-uppercase View, and I I just have no idea what is going on on this front (I tested and observed this behavior just on my view.php).
Does anyone know why this is happening?
I can add, my server information is as follows:
Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny2 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0
IE new new debian for installation with default debian packages + php-mssql.
apache mod-rewrite
kastermester
source share