Support Forums

 
  iFinity Support Forum  DotNetNuke Modu...  Friendly Url Pr...  doNotReWriteRegEx not working
Previous Previous
 
Next Next
New Post 6/11/2008 6:06 AM
  RMG
6 posts
No Ranking


doNotReWriteRegEx not working 

I have installed the module, and it works very well except with another module I have. I tried disabling the rewrite based on the module id, but it does not seem to work

I have this in my web.config

doNotRewriteRegex="(\.axd)|(/DesktopModules/)|(/mid/550/)"

 

Here is a link to the page:
http://www.vision-ease.com/home/provider-lookup.aspx

when you look up a provider (search for zip 55112 and click the link to the first listing),  you get this rewritten in the URL

 

 

 
New Post 6/11/2008 1:31 PM
  Bruce Chapman
565 posts
1st Level Poster


Re: doNotReWriteRegEx not working 

OK, a couple of things:

- you want doNotRedirectRegex instead of doNotRewriteRegex.  It is the 301 redirection that is causing the problem.  Rewriting is the process of taking a friendly Url (provider-lookup) and replacing it with a tabid (tabid=124).  Redirection is the process of forwarding the browser to another Url (in your case, the broken url).

- You can try the |(/mid/550) on your doNotRedirectRegex setting, and see how that goes.

- If you're in contact with the author of the module, they need to check what the query string looks like before tacking on the end.  The underlying problem here is the '&' instead of the '?' to denote the start of a query string .  The Url itself is not valid.

 
New Post 6/12/2008 2:10 AM
  RMG
6 posts
No Ranking


Re: doNotReWriteRegEx not working 

Adding it in doNotRedirectRegex did nothing. I tried every configuration under thesun but was unsuccessful. I was able to use  page blaster to replace with the original URLs, which isn't ideal, but it works.

My new links looks like this

http://www.vision-ease.com/default.aspx?tabid=117&ctl=detailview&mid=550&storeid=10487&SkinSrc=[L]Skins/VisionEase/Tertiary%20Page&ContainerSrc=[L]Containers/VisionEase/title

 


 
New Post 6/12/2008 10:29 PM
  Bruce Chapman
565 posts
1st Level Poster


Re: doNotReWriteRegEx not working 

It's not easy getting the regex filters correct.  It usually takes some trial and error using the 'test' functionality in the friendly Url Settings screen.

Your solution with pageblaster looks like it will do the trick though.  Did you just try reformatting the '&' character to '?' ?

 
Previous Previous
 
Next Next
  iFinity Support Forum  DotNetNuke Modu...  Friendly Url Pr...  doNotReWriteRegEx not working
Can't find the answer?
 

If you can't find the answer and don't have time...try out the Premium Support service.  Get personal attention and get the problem fixed by an expert.

 

Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.

If you wish, you can use the Premium Support Service for one-on-one support.