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
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Redirect Index.php to Root Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
MRaburn
Newbie
Newbie


Joined: 29 May 2005
Online Status: Offline
Posts: 4
Posted: 30 June 2011 at 12:54pm | IP Logged Quote MRaburn

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 View MRaburn's Profile Search for other posts by MRaburn
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 01 July 2011 at 4:23am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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