I have reconstructed a website utilizing a Content management systems and I wish to result in the old web addresses indicate the brand new pages. I am getting trouble since the old URL appears like this: ?secc=country_club. For example, domain.com?secc=country_club.

I must either possess a rule for every url or get it rewrite the ?secc=country-club to simply country-club

This is exactly what I've attempted, with no success:

RewriteRule ^secc-([^-]*)$ /?secc=$1 [L]

It has something related to the ? within the url

And if it will help, I'm using joomla and that i will have sh404sef.

RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^secc=(.+)$
RewriteRule ^(.*) %1? [R,L]

This can redirect http://example.com/?secc=MYPAGE to http://example.com/MYPAGE

I believe you designed to write '=' after ^secc:

RewriteEngine on
RewriteRule ^?secc=(.*)$ "$1" [QSA]