RewriteEngine On
RewriteRule ^([^_]*)$ /profile.php?id=$1 [L]
http://www.sample.com/profile.php?id=275673 -> http://www.sample.com/275673
RewriteEngine On
RewriteRule ^([^_]*)\.html$ /profile.php?id=$1 [L]
http://www.sample.com/profile.php?id=275673 -> http://www.sample.com/275673.html
RewriteEngine On
RewriteRule ^veer([^_]*)\.html$ /profile.php?id=$1 [L]
http://www.sample.com/profile.php?id=275673 -> http://www.sample.com/veer275673.html
RewriteEngine On
RewriteRule ^([^_]*)_([^_]*)_([^_]*)/$ /profile.php?id=$1&name=$2&dob=$3 [L]
http://www.sample.com/profile.php?id=9090128&name=dharambir&dob=7989 ->
http://www.sample.com/9090128_dharambir_7989/
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)/$ /profile.php?id=$1&name=$2&dob=$3 [L]
http://www.sample.com/profile.php?id=9090128&name=dharambir&dob=7989->
http://www.sample.com/9090128/dharambir/7989/
RewriteEngine On
RewriteRule ^profile/([^/]*)/([^/]*)\.html$ /perfect/profile.html?id=$1&name=$2 [L]
http://www.sample.com/perfect/profile.html?id=90&name=dharambir->
http://www.sample.com/profile/90/dharambir.html
nesr
ReplyDelete