.htaccess - Rewrite url with query string in htaccess -
today try rewrite ugly url in order cache browser! problem have multiparameters inside url. example better long text :
the actual url ? , & :
http://images.mydomain.com/lib/simple-thumb.php?src=http://google.com&l=180&h=135&zc=1
and want use instead :
http://images.mydomain.com/lib/http://google.com/180/135/1
should use rule below in .htaccess?
options +followsymlinks rewriteengine on rewritecond %{query_string} ^(.*)$ rewriterule simple-thumb\.php /lib/%1/? [r=301,l]
but not seams work...
thanks kind help
try
options +followsymlinks rewriteengine on rewriterule ^/lib/http\:\/\/google.com/([0-9]+)/([0-9]+)/([0-9]+)$ /lib/simple-thumb.php?src=http://google.com&l=$1&h=$2&zc=$3
Comments
Post a Comment