Vreau sa mut un blog de pe un subdomeniu ca fiind o categorie a unui alt domeniu. Dpdv al bazei de date al noului blog este totul functional, insa doresc sa redirectionez linkurile blogului vechi.
Practic tb scrise reguli ptr 3 tipuri de url-uri indexate mai bine de catre Google la momentul actual:
1)
subdomain.example.com => www.example.com/new-category-of-other-blog
2)
subdomain.example.com/url1.html => www.example.com/url1.html
subdomain.example.com/url2.html => www.example.com/url2.html
3)
subdomain.example.com/page/2 => http://www.example.com/new-category-...er-blog/page/2
subdomain.example.com/page/3 => http://www.example.com/new-category-...er-blog/page/3
Deocamdata am facut asta:
Ele imi rezolva cazurile 2) si 3)Citat:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule (.*)\.html$ http://www.example.com/$1.html
redirect 301 /page http://www.example.com/modele/page
Insa pentru 1) nu stiu cum sa rezolv. :P
PS: am activat un plugin ca in noul blog sa dispara cuv "category" din url.
Din aceasta cauza am link ptr categorie de genul www.example.com/new-category-of-other-blog si nu te tipul http://www.example.com/category/new-...-of-other-blog
