← WordPress

Remover /categoria/ do wordpress

Lida 2806 vezes

Offline

Diogo Pinto 
Administrador
Mensagens 4400 Gostos 371
Feedback +4

Troféus totais: 37
Trófeus: (Ver todos)
Avatar Search Level 6 Linux User Mobile User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

Boas a todos,

Queria remover dos URLS o que diz "/categoria/xpto"

O problema é que não encontro nada funcional.

Aviso: tem de ser SEO friendly, ou seja, com redireccionamento 301.

Se for muito dificil de implementar, poderei pagar por essa alteração.

Obrigado
Offline

Pedro Lopes 
Beta tester
Mensagens 3568 Gostos 18
Feedback +6

Troféus totais: 32
Trófeus: (Ver todos)
Level 6 Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3

RewriteRule ^category/(.+)$ http://www.teublog.com/$1 [R=301,L]

No .htaccess
Offline

Nuno 
Administrador
Mensagens 7780 Gostos 216
Feedback +2

Troféus totais: 42
Trófeus: (Ver todos)
100 Poll Votes Level 7 Search Mobile User Level 6 Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

tens o plugin que remove o /category

e depois o all in one seo, ou o platium seo, criam redirects automáticos sempre que uma url é alterada.

Penso que dá sem grande stress.
Offline

dardevelin 
Membro
Mensagens 249 Gostos 0
Troféus totais: 21
Trófeus: (Ver todos)
Linux User Super Combination Combination Topic Starter Poll Voter Level 4 Level 3 Level 2 Level 1 100 Posts

Boas, ok vou salvar-te a vida, topa aqui este plugin -  http://www.fischercreativemedia.com/wordpress-plugins/quick-pagepost-redirect-plugin/

diz la quem é amigo XD
Offline

Diogo Pinto 
Administrador
Mensagens 4400 Gostos 371
Feedback +4

Troféus totais: 37
Trófeus: (Ver todos)
Avatar Search Level 6 Linux User Mobile User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

Obrigado a todos, mas nenhum funcionou... :/
Offline

Nuno 
Administrador
Mensagens 7780 Gostos 216
Feedback +2

Troféus totais: 42
Trófeus: (Ver todos)
100 Poll Votes Level 7 Search Mobile User Level 6 Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

Offline

Diogo Pinto 
Administrador
Mensagens 4400 Gostos 371
Feedback +4

Troféus totais: 37
Trófeus: (Ver todos)
Avatar Search Level 6 Linux User Mobile User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

Offline

Diogo Pinto 
Administrador
Mensagens 4400 Gostos 371
Feedback +4

Troféus totais: 37
Trófeus: (Ver todos)
Avatar Search Level 6 Linux User Mobile User Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

Consegui! O único plugin que pareceu funcionar foi o WP NO CATEGORY BASE.
Offline

Luís Salvador 
Membro
Mensagens 2068 Gostos 37
Feedback +4

Troféus totais: 28
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Isto deve ter sido uma enorme coicindência, eu há coisa de 2 horas também tava a fazer isto no meu portfólio.

Também estou a usar o WP No Category Base, e ainda o WP No Tag Base

; )