Over the last couple of years I have taken over a website made up of several parts, ie there were some traditional html pages, a php “wiki” installation and a similar php “knowledgeable” installation.
I have redesigned the site and converted the old html part of the site to Joomla.
At present the new Joomla website calls in the wiki php functionality into Joomla using the “URL” menu type.
However, to me, there is no longer a need for this wiki installation and would like to bring all the wiki pages into Joomla. Regarding the content, this is not a difficult task - it’s a simple copy and paste job from the wiki into Joomla articles.
The problem I have is that the wiki pages rank well in Google, and I need to ensure that above all else that the pages do not lose ranking as we swap the pages into Joomla.
The wiki itself does have a redirect plugin which I’ve set up, and it works, but Google is still listing the old URLs and not the new URLs.
I have tried creating redirects via htaccess in the root folder, but it’s not working as I was hoping.
Here is the redirect I have tried in htaccess:
Redirect 301 /phpfolder/doku.php?id=mydocument https://www.mysite.co.uk/new-category/2 ... joomla-doc
I've tested it several times and as soon as the "?id=mydocument" goes in after the doku.php the server completely ignores the redirect and serves the original wiki page and not the new Joomla page.
Does anybody have any suggestion on how I can resolve this to avoid the original wiki pages losing ranking and to get Google to recognise the new pages and deindex the old pages?
Any help, as always, greatly appreciated.