The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> System Administration
> IIS
|
URL Rewrite problems on IIS7
Discuss URL Rewrite problems on IIS7 in the IIS forum on Dev Shed. URL Rewrite problems on IIS7 IIS forum discussing Microsoft's Internet Information Server including its configuration, optimization and other related topics. IIS is the most popular web server for the Windows platform.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

January 5th, 2010, 04:42 PM
|
|
Contributing User
|
|
Join Date: Nov 2003
Posts: 81
 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
|
|
|
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
|

January 5th, 2010, 04:55 PM
|
|
Contributing User
|
|
Join Date: Nov 2003
Posts: 81
 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
|
|
|
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.
|

January 5th, 2010, 05:03 PM
|
|
Contributing User
|
|
Join Date: Nov 2003
Posts: 81
 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
|
|
|
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?
|

January 6th, 2010, 02:50 PM
|
|
|
|
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
|

January 6th, 2010, 02:51 PM
|
|
Contributing User
|
|
Join Date: Nov 2003
Posts: 81
 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
|
|
|
it seems to be an add-on
url rewrite 1.1
|

January 8th, 2010, 12:52 AM
|
|
Contributing User
|
|
Join Date: Nov 2003
Posts: 81
 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
|
|
|
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.
|

January 8th, 2010, 05:55 AM
|
|
Contributing User
|
|
Join Date: Nov 2003
Posts: 81
 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
|
|
|
fixed by installed asp mvc
|

January 8th, 2010, 11:24 PM
|
|
|
|
I'm glad you got it working, thanks for sharing your solution.
|

January 11th, 2010, 05:53 PM
|
|
Contributing User
|
|
Join Date: Nov 2003
Posts: 81
 
Time spent in forums: 10 h 40 m 13 sec
Reputation Power: 10
|
|
|
Sorry wrong solution!
The solution was that i changed the IIS application process to classic.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|