Component URLs and RedirectMatch

0
Hi Germinal I have a question about URLs. I'm using Joomla SEF and also using RedirectMatch to get rid of "component/muscol".
RedirectMatch 301 /en/component/muscol(.*) http://www.anything.com/en$1

This works fine as I get urls like:
http://www.anything.com/en/C/1418-artist/373-album

Is this the right way to do it?
I'm asking this because I've been tuning my muscol website for performance and reading about internal rewrites, external rewrites, etc, and it is very confusing!

My doubt comes because on my website, if I hover over a link I see that the link is not SEF, meaning:
http://www.lobotoradio.com/en/component/muscol/D/179-artist/280-album

And if I click it I get redirected to this via RedirectMatch:
http://www.lobotoradio.com/en/D/179-artist/280-album


Is there a more efficient way to do it? A way to have the SEF and redirect link already on the page instead of just getting redirected. One problem with the current situation is that google is indexing both urls and warning about repeated content (as metas are the same). Also, if you check my source code, Joomla uses the prerewrite url to create the canonical (which google reads) and prints something like:
<link href="/en/initium/D/179-desorden-publico/280-desorden-publico" rel="canonical"/>


Thanks in advance for your advice.
Responses (5)
  • Accepted Answer

    Monday, November 04 2013, 05:58 PM - #Permalink
    0
    hello,

    I'm not familiar with RedirectMath.. you should really be asking them.

    what you describe seems "more or less" correct, but I'm no expert in redirectmatch so I can't really say..
    why don't you just use our DEFAULT ITEMID field to get ride of the component/muscol part?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, November 05 2013, 03:00 AM - #Permalink
    0
    RedirectMatch is an .htaccess custom redirect directive. Not really sure who do I ask about that :p
    But I do use the default item id! It's on all the modules and it shows up at the end of all the search queries, but without a rewrite (in .htaccess) the component/muscol thingy doesn't go away.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, November 05 2013, 11:45 AM - #Permalink
    0
    it's also in the main component options.. you have to set it up there too!
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, November 05 2013, 11:57 AM - #Permalink
    0
    Sorry I didn't mention it before. The default itemid is in the component too. I've been digging around Muscol and fixing things here and there. Please don't take it wrong as I know how things go with websites, but some things just don't work out of the box. Perhaps because of enviromental variables or folder structure or who knows. The default itemid is one of them. In my case it didn't work in joomla 2.5 and it doesn't work in joomla 3, which is why I do the redirect through htacces. For example, if you go to my website and search songs (it can be an empty search, it doesn't matter), you'll see that the nice background images for play, playing and pause work. The blue background also works for the song currently playing. But in the album page it doesn't. That happened to me in joomla 2.5 too. In any case, Is there any other other place I have to put the default itemid besides the muscol's component and modules? Since I installed muscol I have suspected my menu structure.
    Attachments:
    • Germinal Camps
      more than a month ago
      gustavo, what you mention is strange. it should work on album page too. it's the same "code", sort to say. if you want, please send me site access to support@ joomlathat.com.. the Itemid seems good as well, it should be working.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, November 15 2013, 10:39 AM - #Permalink
    0
    Hey, thanks for the reply. I'm sending the info to your email :)
    The reply is currently minimized Show
Your Reply