Answers permalink problem

7.37K viewsGeneralanswer, permalink
1

Response links are giving a 404 error. Google is giving an error due to the refreshed link structure.

Old links: www.website.com/question/question-title/3569/

New links: www.website.com/question/question-title/answers/3569/

How can I fix the problem? I need to direct the part. (/answers/) Constantly changing the link structure is a disadvantage for SEO.

1

Old links are not redirected to new links. How can I redirect old links to new links?

0

@Rahul htaccess code did not work

0

@Rahul, even my old permalinks are not redirecting to new one… i don’t know what to write in .htaccess

my old permalink was like –

https://medicoshive.com/discussion/question/question-title

New url is –

https://medicoshive.com/question/question-title

 

*discussion is removed.

Please help me how should I use redirect?

 

Thanks

Regards

Atul

commented on answer

RewriteRule ^discussion/question/(.*)$ /questions/$1 [R=301,L]

0

try adding this to top of your .htaccess file :

RewriteRule ^question/(.*)/(.*)$ /questions/$1/answers/$2 [R=301,L]

commented on answer

I’ve tried. not orientation.

0

Hello,

That was a bug in 4.1.5 which was already solved and a new version coming in few hours.

commented on answer

Old links are not redirected to new links. How can I redirect old links to new links?