.htaccess - URL Rewrite Rule do a redirect but changes url in address bar -


ok have following configuration below

rewriterule ^skibe/(.*)$ http://%{http_host}/skibe?sku=$1 [qsa,l]  

now want here is..

when type

http://myhost.com/skibe/abc

it still same on address bar http://myhost.com/skibe/abc

but problem keeps on changing to

http://myhost.com/skibe?sku=abc

is there wrong configuration? rewrite directives are

   options +followsymlinks     rewriteengine on 

get rid of http://%{http_host} part in rule's target. cause mod_rewrite inherently redirect:

rewriterule ^skibe/(.*)$ /skibe?sku=$1 [qsa,l]  

Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -