This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Redirect
Author
Message |
jimpropan
Newbie


Joined: 01 September 2011
Posts: 2
Posted: 01 September 2011 at 8:44am

Hello!

I want to redirect a URL like this www.domain.com/firstfolder/secondfolder to a specific page, but I can't get it to work properly. Some help, please!

Code:
RewriteCond %{HTTP_Host} (www\.)?domain.com/firstfolder/secondfolder
RewriteRule /$ http://www.domain.com/landing.aspx [NC,U,L,R]

/Jim
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 01 September 2011 at 8:50am

Hello Jim,

Try using:

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_Host} (www\.)?domain\.com
RewriteRule ^firstfolder/secondfolder$ http://www.domain.com/landing.aspx [NC,U,L,R]

Regards
Andrew

Back to Top
 
jimpropan
Newbie


Joined: 01 September 2011
Posts: 2
Posted: 01 September 2011 at 9:25am

This doen't work either... The server is runnig XMPie uProduce if that helps to help me(?)

This is my real code:

#### AcobiaFLUX_BEGIN_CustomRule_3 ####

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_Host} (www\.)?acobiafluxevents.se
RewriteRule /$ http://www.acobiafluxevents.se/landing.aspx [NC,U,L,R]

#### AcobiaFLUX_END_CustomRule_3 ####

#### Test_BEGIN_CustomRule_4 ####

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_Host} (www\.)?minrenault\.se
RewriteRule ^megane4ever/seller$ http://www.minrenault.se/seller.aspx [NC,U,L,R]

#### Test_END_CustomRule_4 ####



AndrushkaUS wrote:
Hello Jim,

Try using:

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_Host} (www\.)?domain\.com
RewriteRule ^firstfolder/secondfolder$ http://www.domain.com/landing.aspx [NC,U,L,R]

Regards
Andrew

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 02 September 2011 at 4:38am

Please, provide the rewrite.log for the testing request.
Logging issues described in FAQ

Regards
Andrew
Back to Top
 

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

Printable version Printable version