I don't understand the first rewrite rule in your .htaccess. $1 is going to be the whole match string, so if you pass it "fred" it will just convert that to "https://kitz.co.uk/fred" won't it?
I think that may have been inserted by cpanel then because I didn't put it there. I don't understand the rewrite rules so havent touched anything, despite me spending ages last night trying to find out what to do for the subdomains.
can you provide a link kitz to the google page that has the search results, either provide the search terms or a direct link to the page.
Its any & all google search results.
https://www.google.com/search?q=kitzhover over the results and you will see the main site takes you to
www.kitz.co.uk, hover over kitz forum and it should take you to forum.kitz.co.uk etc
For the wiki look at this search result
https://www.google.com/search?q=kitz+wiki+bcm which gives the url
http://wiki.kitz.co.uk/index.php/BCM_routers yet look what happens when you click on it you end up at
https://kitz.co.uk/wiki/index.php/BCM_routers which is broken because the wiki is configured to be on a subdomain.
----------------------------------------
Perhaps this explains its better,
1) If I type
http://www.kitz.co.uk in my browser then you end up at
https://kitz.co.uk/ - I'm ok with that
2) If I type
http://forum.kitz.co.uk in my browser then you end up at
https://kitz.co.uk/forum/ - I don't want this
What I think I perhaps need then is some sort of 301 rewrite rule to ensure that any old links from the past redirects to the correct location?
I need something which does a 301 redirect/rewrite of any old forum urls that will be scattered around the internet everywhere to end up
https://forum.kitz.co.uk and similar with the wiki. This is what I don't know how to do and despite searching I can't find anything concrete on how to handle subdomains.
Do I need to put something in a htaccess file in root of the forum directory and wiki directory?