...

View Full Version : Parameter to URL and back



PetNov
06-22-2011, 10:54 AM
Hi,
I would like to use .htaccess (and regex) to accomplish this:

After typing query into searchbox and pressing enter, the url is:

http://subdomain.domain.com/index.php?media=0&query=money&search=1

but address bar in browser is (for user and google) showing this:

http://subdomain.domain.com/money

AND

after typing in address bar in browser

http://subdomain.domain.com/money

it actually goes to

http://subdomain.domain.com/index.php?media=0&query=money&search=1

but in address bar in browser still showing

http://subdomain.domain.com/money

I tried everything but no success. Eg. this:


RewriteCond %{QUERY_STRING} ^query=(.*)$ [NC]
RewriteRule ^/index.php$ /%1 [NC,L,R=301]

Pls, could you help? Thank you very much.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum