IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 27th, 2012, 09:10 AM
-=-steve-=- -=-steve-=- is offline
Devshed Gringo
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: Toronto, Ontario
Posts: 448 -=-steve-=- User rank is Sergeant Major (2000 - 5000 Reputation Level)-=-steve-=- User rank is Sergeant Major (2000 - 5000 Reputation Level)-=-steve-=- User rank is Sergeant Major (2000 - 5000 Reputation Level)-=-steve-=- User rank is Sergeant Major (2000 - 5000 Reputation Level)-=-steve-=- User rank is Sergeant Major (2000 - 5000 Reputation Level)-=-steve-=- User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 15 h 31 m 23 sec
Reputation Power: 60
Rewrite rule that's killing me!

I've been trying to do the following:

index.cfm?ci_id=7486&la_id=1

Redirects to

www.test.com

But the "?" just kills me each time. Any help will be appreciated. Thanks so much...

P.S. I moved an old CFM based CMS to Dotnetnuke and a few pages that I need to add a 301 redirect to... I tried using wildcards *7486* but I keep getting a 404 error?


__________________
Still don't know how to do a "Hello World"?

Reply With Quote
  #2  
Old June 27th, 2012, 02:04 PM
requinix's Avatar
requinix requinix is offline
Still alive
Click here for more information.
 
Join Date: Mar 2007
Location: Washington, USA
Posts: 12,717 requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)  Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 5 Months 1 Week 4 Days 7 h 29 m 55 sec
Reputation Power: 8969
Send a message via AIM to requinix Send a message via MSN to requinix Send a message via Yahoo to requinix Send a message via Google Talk to requinix
Not being intimately familiar with IIS's URL rewriting, I would guess that it works the same way as others: by looking at the path only and not the query string. You have to do something specific to have it look at the query string.

But a 404? Does index.cfm not exist? Should you be redirecting from that instead?
Comments on this post
-=-steve-=- agrees: Thanks for the reply

Reply With Quote
  #3  
Old June 28th, 2012, 10:24 AM
-=-steve-=- -=-steve-=- is offline
Devshed Gringo
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: Toronto, Ontario
Posts: 448 -=-steve-=- User rank is Sergeant Major (2000 - 5000 Reputation Level)-=-steve-=- User rank is Sergeant Major (2000 - 5000 Reputation Level)-=-steve-=- User rank is Sergeant Major (2000 - 5000 Reputation Level)-=-steve-=- User rank is Sergeant Major (2000 - 5000 Reputation Level)-=-steve-=- User rank is Sergeant Major (2000 - 5000 Reputation Level)-=-steve-=- User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 15 h 31 m 23 sec
Reputation Power: 60
Quote:
Originally Posted by requinix
Not being intimately familiar with IIS's URL rewriting, I would guess that it works the same way as others: by looking at the path only and not the query string. You have to do something specific to have it look at the query string.

But a 404? Does index.cfm not exist? Should you be redirecting from that instead?


Thanks for the reply, index.cfm does not exist in that site. My guess is, as soon as it see's the "?" it breaks the redirect. When I remove the "?", the redirect works?

Thanks

Reply With Quote
  #4  
Old June 28th, 2012, 12:30 PM
requinix's Avatar
requinix requinix is offline
Still alive
Click here for more information.
 
Join Date: Mar 2007
Location: Washington, USA
Posts: 12,717 requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)  Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 5 Months 1 Week 4 Days 7 h 29 m 55 sec
Reputation Power: 8969
Send a message via AIM to requinix Send a message via MSN to requinix Send a message via Yahoo to requinix Send a message via Google Talk to requinix
Right. Because it matches against the path and not the query string. You have to remove the query string to get it to match, then optionally add in something to check the query string (if you really do need that).

Using the URL Rewrite Module

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Rewrite rule that's killing me!

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap