views:

31

answers:

2

I am not really familiar with apache modrewrite

I have url parameters such as {domain}/index.php?blog=5

i simply want to make it {domain}/home.php?client=5

Is it a task as simple as it sounds and can anyone help ?

A: 

URL Rewriting Guide

Sjoerd
there are thousands of them around, i just need an answer not a guide
ezlem
A: 

The following might work, give it a try

RewriteCond %{REQUEST_URI} ^/home.php [NC]
RewriteCond %{QUERY_STRING} client=([0-9]+) [NC]
RewriteRule (.*) http://%{REMOTE_HOST}/index.php?blog=%1 [L]
William