This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Redirect Index.php to Root
Author
Message |
MRaburn
Newbie


Joined: 29 May 2005
Posts: 4
Posted: 30 June 2011 at 12:54pm

Ive tried tons of different ways to do this redirect and cannot get it to work.

I have an install of Joomla and they have a 'HOME" button that links to a
variable URL, I want to redirect that back to the root so in the browser it is
back to the root and then does not appear to be 2 diff pages. Here is the
latest code I have made but does not do an actual redirect back to root.

RewriteRule ^/index\.php?option=com_frontpage&Itemid=1$ /
[NC,R=301,L]

Thanks for any insight!
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 01 July 2011 at 4:23am

Should be slightly different in ISAPI_Rewrite 3:

RewriteBase /
RewriteCond %{QUERY_STRING} ^option=com_frontpage&Itemid=1$ [NC]
RewriteRule ^index\.php$ / [NC,R=301,L]

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum