Joomla component rewrite issue

New to mod_rewrite? This is a good place to start.

Joomla component rewrite issue

Postby gbhughs » Wed Aug 19, 2009 2:01 pm

Hello...thanks for looking

I am running a joomla website and I am using the core seo features built it.
I am running version 1.5.14

The issue I am having is with a component. In my main menu (top menu) my urls are being wrote like this:

share-your-content.html (main component)
share-your-content/detail/36-voice-applied-customer-service.html (details from component)
/share-your-content/tags/12-resume.html (tags from component)

This is great!!

However some areas of the website are rewriting the urls like this:
/component/(component name)/detail/36-voice-applied-customer-service.html
/component/(component name)/tags/12-resume.html

My question is how can I redirect these last ones to the first examples which are what I would like to have?

I hope this made sense :wink:
gbhughs
 
Posts: 2
Joined: Wed Aug 19, 2009 1:52 pm

Postby richardk » Fri Aug 21, 2009 6:03 am

Try adding
Code: Select all
RewriteRule ^component/componentname(/(detail|tags)/[0-9]+-[^/]+)\.html$ /share-your-content$1 [R=301,L]

to the beginning of your current Joomla mod_rewrite.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby gbhughs » Fri Aug 21, 2009 7:08 am

Thanks brother, that worked perfectly :wink:
gbhughs
 
Posts: 2
Joined: Wed Aug 19, 2009 1:52 pm


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 30 guests

cron