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: url rewrite
Author
Message |
abhijeet_dighe
Newbie


Joined: 20 January 2010
Posts: 22
Posted: 25 January 2012 at 10:47pm

Hi,

We have following url:

domaina.com/test.asp

how to rewrite it to:

domainb.com/test.asp

Please let me know the rewrite rules for this.
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 26 January 2012 at 7:39am

Hello,

Please, try adding the following code to domaina's .htaccess:

Code:
RewriteEngine on
RewriteBase /

RewriteRule ^test\.asp$ http://domainb.com/test.asp [NC,R=301,L]


In case you don't need 301-redirect, insert P instead of R=301.

In case you use httpd.conf, than you code would look like:

Code:
RewriteEngine on
RewriteBase /

RewriteCond %{HTTP:Host} ^domaina\.com$ [NC]
RewriteRule ^test\.asp$ http://domainb.com/test.asp [NC,R=301,L]


Regards
Andrew
Back to Top
 
djsandroecorp
Newbie


Joined: 30 May 2012
Location: Indonesia
Posts: 1
Posted: 30 May 2012 at 3:09am

My first using modwrite in IIS 6 make booring..

so, i have a question:

1. How to installation this module in iis 6 from zero, step
by step, n screenshot..
2. I have a .htaccess, but not running in iis 6..

please help me for this trouble.. :)

Back to Top Visit djsandroecorp's Homepage
 
cpiter
Newbie


Joined: 16 July 2012
Posts: 1
Posted: 16 July 2012 at 2:29am

Hi,
I also stuck with some problem, Please help me on this

Problem:
I want to rewrite url myawtest.com to www.myawtest.com

I did this using following statements

RewriteCond %{HTTP_HOST} !^(www\.)myawtest\.com
RewriteRule (.*) http\://www.myawtest.com$1 [R=301,L]


But this is not works when I do www.myawtest.com/abc or
myawtest.com/abc

In my site if I don’t use above rewriting rule then
www.myawtest.com/abc works perfect and it redirect to
www.myawtest.com/login.aspx   if I implement above rules
it simply redirecting to www.myawtest.com/default.aspx
while I want it to redirect on this url
www.myawtest.com/login.aspx


Looking forward.
Back to Top
 
HeliconA
Admin Group


Joined: 02 March 2012
Posts: 4142
Posted: 16 July 2012 at 4:42am

This forum is no longer being supported, please, create a new ticket using the following link and described your issue. http://www.helicontech.com/community/

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