Forum Moderators: phranque
how can i redirect this "/component/option,com_frontpage/Itemid,1/" to www.domain.com
so when someone click on url containing this string "/component/option,com_frontpage/Itemid,1/" he will be redirected back to domain itself ie. "www.domain.com"
but the redirection should work only from this specific string in url.
thanks in advance
#RewriteRule ^component/component/option,com_frontpage/Itemid.*$ [domain.com...] [R=permanent,L]
and this one
#RedirectPermanent [domain.com...] [domain.com...]
nothing works, commented both :(
RedirectPermanent /component/option,com_frontpage/Itemid,1/ http://www.example.com/
-or-
RedirectMatch 301 ^/component/option,com_frontpage/Itemid,[0-9]+/$ http://www.example.com/
You didn't say if you have other RewriteRules that work. If not, you will likely need to 'set up' mod_rewrite by adding one or more of the following directives before your RewriteRule:
Options +FollowSymLinks
RewriteEngine on
#
RewriteRule ^component/component/option,com_frontpage/Itemid,[0-9]/$ http://www.example.com/ [R=301,L]
Jim
RewriteRule ^component/option\,com\_frontpage/Itemid\,1 [domain.com...] [R]
and now everything is working :)
thanks alot :)