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 January 5th, 2010, 04:42 PM
seanincali seanincali is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 81 seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
Send a message via ICQ to seanincali
URL Rewrite problems on IIS7

Im using iis7 and this url rewrite is giving errors, can anyone tell me how to fix this to work with iis?

Im moving over a site from apache to iis and am having all kinds of small issues.

this is the code and error presently.

HTTP Error 500.50 - URL Rewrite Module Error.
The expression "^group_edit/([a-zA-Z0-9\_\.\-]+)/$" contains an unmatched '[' or ']'.


another problem im having is with the type of rewrite below, when someone tries going to login.asp the login/ rewrite below blocks it? any ideas of why? it works on apache. I just imported my url rewrites from the apache htaccess file.
^login/?([^\/].*)?$

how can i make it so it sees that as a directory only?



please help with both questions if you can, thank you!!

Sean

Reply With Quote
  #2  
Old January 5th, 2010, 04:55 PM
seanincali seanincali is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 81 seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
Send a message via ICQ to seanincali
found the answer elsewhere for the first problem, here it is.



It is not necessary to escape the _ symbol. Try this pattern instead:

^group/([a-zA-Z0-9_\.\-]+)/$



** i still need help with the second problem**
^login/?([^\/].*)?$

**actually it seems to work some, if you see an issue let me know please.

Last edited by seanincali : January 5th, 2010 at 05:00 PM.

Reply With Quote
  #3  
Old January 5th, 2010, 05:03 PM
seanincali seanincali is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 81 seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
Send a message via ICQ to seanincali
another problem:

on win2k8/apache it was ok for rewrite google seo friendly urls like
http://mydomain.com/yourupload/its_title_is_this:_Title./

on apache the : and . are able to pass the browser,
but on IIS it gives a 505 error.

do i need to just strip the titles so they dont have any characters other than letters and numbers or?

Reply With Quote
  #4  
Old January 6th, 2010, 02:50 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,239 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 15 h 20 m 7 sec
Reputation Power: 4445
Just out of curiosity, is urlrewrite part of IIS or is it an an add-on from another vendor? And I don't know the answer to your question, sorry.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #5  
Old January 6th, 2010, 02:51 PM
seanincali seanincali is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 81 seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
Send a message via ICQ to seanincali
it seems to be an add-on

url rewrite 1.1

Reply With Quote
  #6  
Old January 8th, 2010, 12:52 AM
seanincali seanincali is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 81 seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
Send a message via ICQ to seanincali
any have any ideas of why iis wont pass this type or url rewrite? it comes back as bad request

http://mydomain.com/edit_profile&s=personal

the actual rule is

<rule name="Imported Rule 103" enabled="true" stopProcessing="true">
<match url="^edit_profile/?([^/._]+)?$" ignoreCase="true" />
<action type="Rewrite" url="index.php?view=edit_profile{R:1}" appendQueryString="true" />
</rule>



I have iis url rewrite 2 installed.

Reply With Quote
  #7  
Old January 8th, 2010, 05:55 AM
seanincali seanincali is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 81 seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
Send a message via ICQ to seanincali
fixed by installed asp mvc

Reply With Quote
  #8  
Old January 8th, 2010, 11:24 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,239 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 15 h 20 m 7 sec
Reputation Power: 4445
I'm glad you got it working, thanks for sharing your solution.

Reply With Quote
  #9  
Old January 11th, 2010, 05:53 PM
seanincali seanincali is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 81 seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level)seanincali User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
Send a message via ICQ to seanincali
Sorry wrong solution!

The solution was that i changed the IIS application process to classic.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > URL Rewrite problems on IIS7

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