Joomla

Categories:

Jooma remove index.php? from url

RewriteCond %{query_string} ^([a-zA-Z0-9\-\/\.]+)$ [NC]
RewriteRule ^(.*)$ <a href="http://example.com/phrase%1" title="http://example.com/phrase%1">http://example.com/phrase%1</a>? [R=301,L]

Jooma Redirect (via Rewrite) example

RewriteCond %{query_string} ^\/blog\/.*$ [NC]
RewriteRule ^(.*)$ <a href="http://example.com/blog/" title="http://example.com/blog/">http://example.com/blog/</a>? [L,R=301]

This takes the query string, evaluates it, and then redirects to a url and discards the query sting.