Forum Moderators: phranque

Message Too Old, No Replies

Simple dynamic to homepage redirect

This should be simple, but I don't find it...

         

EsterA

10:18 am on Aug 15, 2006 (gmt 0)

10+ Year Member



Hi,

The URL http://www.example.com/index.php?option=com_frontpage&Itemid=20 is equal to the homepage, so I want to redirect it to http://www.example.com/

I have searched the tutorials but not found how to do this. Have also tried a number of variants without success. Would be very thankful for help.

Thanks.

[edited by: jdMorgan at 12:55 pm (utc) on Aug. 17, 2006]
[edit reason]
[1][edit reason] Example.com [/edit]
[/edit][/1]

jdMorgan

1:00 pm on Aug 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This recent thread addresses your question: [webmasterworld.com...]

Jim

EsterA

7:28 pm on Aug 15, 2006 (gmt 0)

10+ Year Member



Thanks Jim for trying, but I don't get it. If that is describing what I need, than it is in too general terms for me. Sorry :]

Would it be too much to ask you how this should look in my particular case?

Thanks.

jdMorgan

12:55 pm on Aug 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




RewriteCond %{QUERY_STRING} ^option=com_frontpage&Itemid=20$
RewriteRule ^index\.php$ http://www.example.com/? [R=301,L]

For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].

Jim

EsterA

6:38 pm on Aug 17, 2006 (gmt 0)

10+ Year Member



Thank you very much Jim - It works fine!