Pregunta

us/my-blog?catid=1&id=404:my-thought-of-the-day-problem-of-traditional-education

RewriteRule ^\/?us/my-blog\?catid=\d+id=\d+\:(.*) http://www.takeshiyashima.com/us/my-blog/others/404-my-thought-of-the-day-problem-of-traditional-education/$1 [R=301,L]  

I have tried This rules. But this is not working. I Have lot of URL like this. I want to redirect them. What to do.

¿Fue útil?

Solución

This should work:

RewriteEngine On

RewriteCond %{THE_REQUEST} ^(GET|POST)\ /us/my-blog\?catid=1&id=(.*)\:(.*)\ HTTP
RewriteRule ^ /us/my-blog/others/%3-%4? [R=301,L]
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top