Hi Folks, I had a post previously and Lucy assisted with a rewrite rule. However, I realised in time that I have two requirements. This is a Joomla site with articles and a Link directory.
The rule to catch all old indexed traffic for articles was quite simple. But The link directory is slightly different and I realsise the rule I have will not work.
My rewrite rule looks like this (NOT yet deployed):
RewriteRule ^MJ/(.*) http://www.example.com/MA/$1 [R=301,L]
For articles the URLS are :
OLD : http://www.example.com/MJ/hospitality/hospitality-news/hotel-industry/1679-an-article-title
New : http://www.example.com/MA/hospitality/hospitality-news/hotel-industry/1679-an-article-title
For the directory the links look like :
Old : http://www.example.com/MJ/wsn/hotel-/a-great-hotel-759.html
New : http://www.example.com/MA/micedirectory/10277-a-great-hotel
(there is no html or file type)
I am sure I need two rules as the URLS for the directory are not the same format and my current rule will not work on them.
There are about 4000 entries so I am trying to simplify & speed the process for the server.
Can anyone assist with suggestions on the second rul - Maybe also the first rule I have needs to be changed so it does not clash with the second. I also have a htaccess in root and in the joomla directory - I assume the rules I need go in the root htaccess.
I really appreciate the input.
Best regards.
[edited by: phranque at 9:34 pm (utc) on Jun 16, 2013]
[edit reason] Please Use Example.com [webmasterworld.com] [/edit]