RewriteEngine On
RewriteCond %{QUERY_STRING} (^|\?)topic=([0-9]+)\.
RewriteRule ^index\.php$ /foro/temas/%2/? [R=301,L]
http://www.mtb.com.uy/foro/index.php/topic,1014.0.html
Thank you @Jake Bunce, it worked!
There's one more that needs to be converted.
It's the same as above but with .html at the end.
Code:http://www.mtb.com.uy/foro/index.php/topic,1014.0.html
RewriteEngine On
RewriteCond %{QUERY_STRING} (^|\?)topic=([0-9]+)\.
RewriteRule ^index\.php$ /foro/temas/%2/? [R=301,L]
RewriteRule ^index\.php/topic,([0-9]+)\. /foro/temas/$1/ [R=301,L]
http://www.mtb.com.uy/foro/index.php/topic,2354.msg29258.html
http://www.mtb.com.uy/foro/temas/resultados-de-%E2%80%9Cgran-premio-orestes-carballo%E2%80%9D.2354/#post-29258
RewriteEngine On
RewriteCond %{QUERY_STRING} (^|\?)topic=([0-9]+)\.
RewriteRule ^index\.php$ /foro/temas/%2/? [R=301,L]
RewriteRule ^index\.php/topic,([0-9]+)\. /foro/temas/$1/ [R=301,L]
RewriteRule ^index\.php/topic,([0-9]+)\.msg([0-9]+)\. /foro/posts/$2/ [R=301,L]
RewriteRule ^index\.php/topic,([0-9]+)\. /foro/temas/$1/ [R=301,L]
RewriteRule ^index\.php/topic,([0-9]+)\.msg([0-9]+)\. /foro/posts/$2/ [R=301,L]
Found more.
Before
Code:http://www.mtb.com.uy/foro/index.php/board,5.0.html
After
Code:http://www.mtb.com.uy/foro/foro/carreras.5/
RewriteEngine On
RewriteRule ^index\.php/board,([0-9]+)\. /foro/foro/$1/ [R=301,L]
Uruguay is moving from second level domains to first level domains (.com.uy to just .uy).
I would like to change two things:
- Move from mtb.com.uy to just mtb.uy
- Move my forum from mtb.uy/foro to the root of mtb.uy
Could you guys please help me with this redirection?
RewriteEngine On
# enforce new domain, mtb.uy
RewriteCond %{HTTP_HOST} !^mtb\.uy$
RewriteRule ^(.*)$ http://mtb.uy/$1 [R=301,L]
# redirect old /foro directory to web root
RewriteRule ^foro/(.*)$ /$1 [R=301,L]
We use essential cookies to make this site work, and optional cookies to enhance your experience.