ashish2005 - 12:47 pm on Jun 25, 2013 (gmt 0)
I have already asked this question at one more place but I did not get any response. I am sure I will get help with my .htacess file here like I did in the past.
What I am trying to do using .htacess is to redirect old urls to new urls . Now 301 redirects are the best way to do this according to my understandings. I googled around and used the following code to redirect
RedirectMatch 301 /play-([0-9a-zA-Z?-]+)-online-([0-9]+).html http://www.example.com/online-games/$1.html
I am actually trying to redirect http://www.example.com/play-Fighting-Mario-online-541.html to http://www.example.com/online-games/fighting-mario.html
What actually happens after the redirect is that I see the following url in the title bar:
Everything is ok, except the query strings after the ? part. I only need till .html .
I have tried everything, searching around, using similar codes of others using Redirectmatch. I am really poor at .htacess and find it really difficult (Regex and all). I tried combinations of codes but to no avail.
I would be really grateful if someone here helped me out.