301 Redirect Question .htacess Rewrite Rule
I have a problem with my site, and I need make 301 redirect to those URLs.
Could someone help me in teaching me how to add some rule to .htaccess?
A lot of thanks for you.
1, all urls like
http://www.examplesite.com/index.php?n=138
http://www.examplesite.com/index.php?n=239
http://www.examplesite.com/index.php?n=1001
......
http://www.examplesite.com/index.php?n=1012
rewrite to
http://www.examplesite.com/index/138
......
http://www.examplesite.com/index/1012
2, all urls like
http://www.examplesite.com/chat.php?...72969615&n=138
http://www.examplesite.com/chat.php?...9086560&n=1001
......
http://www.examplesite.com/chat.php?...3234760&n=1012
rewrite to
http://www.examplesite.com/chat/Jenna_Squirts/138
http://www.examplesite.com/chat/yoursweetfox/1001
......
http://www.examplesite.com/chat/Lara_Schmidt/1012
Run Your Own Direct Sales MLM Company ==> https://DirectSalesMLM.com