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: Rewrite Help Please
Author
Message |
azic
Newbie


Joined: 21 December 2011
Location: United Kingdom
Posts: 2
Posted: 21 December 2011 at 8:12am

Hello all,

I need to be able to rewrite the following URL:
HotTickets/Hot-Ticket-Offer.aspx?ht=1

to the new URL:
/Hot-Ticket-Offer-One.aspx

I just cant figure out how to do it.
I have to do this 6 times e.g ?ht=1 / ht=2 etc.

Any Help would be greatly appreciated



Edited by azic - 21 December 2011 at 8:13am
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 22 December 2011 at 5:25am

Hello,

Please, try using the following:

RewriteEngine on
RewriteBase /

RewriteCond %{QUERY_STRING} ^ht=1$
RewriteRule ^HotTickets/Hot-Ticket-Offer-ONE\.aspx$ [NC,R=301,L]
RewriteRule ^Hot-Ticket-Offer-One.aspx$ /HotTickets/Hot-Ticket-Offer.aspx?ht=1 [NC,L]

Last tree lines nee to be copied and edited 6 times to replace '1' with "2" and "one" with "two", etc

Regards
Andrew
Back to Top
 
azic
Newbie


Joined: 21 December 2011
Location: United Kingdom
Posts: 2
Posted: 22 December 2011 at 5:59am

AndrushkaUS wrote:
Hello,

Please, try using the following:

RewriteEngine on
RewriteBase /

RewriteCond %{QUERY_STRING} ^ht=1$
RewriteRule ^HotTickets/Hot-Ticket-Offer-ONE\.aspx$ [NC,R=301,L]
RewriteRule ^Hot-Ticket-Offer-One.aspx$ /HotTickets/Hot-Ticket-Offer.aspx?ht=1 [NC,L]

Last tree lines nee to be copied and edited 6 times to replace '1' with "2" and "one" with "two", etc

Regards
Andrew

 

Hi thank you so much for your Help. The problem is that the URL:

/HotTickets/Hot-Ticket-Offer.aspx?ht=1 Does not exist. It used to exist on the website, but no longer does.

I am trying to cover this for SEO purposes. We have lots of 404 becuase google is sending in old links to this page.

So what I am looking for is a way to make

/HotTickets/Hot-Ticket-Offer.aspx?ht=1

301 to

www.domainname/Hot-Ticket-Offer-One.aspx

Many Thanks for the help



Edited by azic - 22 December 2011 at 6:01am
Back to Top
 
Guests
Guest


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

Than try using only first two lines out of three.

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