Developer forum

Forum » Templates » How to prevent URL rewriting

How to prevent URL rewriting


Reply

Hi Dynamicweb,

One of the first times I'm posting in the developer forums. Feels good.

In the new DW 7 versions, you can enable Converting module URL's in Management center.

Nice feature, but when setting this feature some existing template code will not work anymore.

Let say I want to enable a Href with
/Default.aspx?ID=362&referer=342

This will convert the wrong way. So is there a way to disable URL rewriting?

I read in another forum post the following:

Other things:
If the link does not start with # it does not get parsed - so you can do like:
<a href="whatever"> or <a href="%whatever">  and it will not get parsed.

Now my string isn't parsed, but the % gives me problems, I can use %2f, this will do the trick.

Am I missing something? I cannot find any manual on this subject.

Kind Regards,

Pim

Replies

 
Nicolai Høeg Pedersen
Reply
How will it convert the wrong way?

You can disable it by changing the querystring order:
Default.aspx?referer=342&ID=362

The parsing script only reacts on Default.aspx?ID={0}, so changing the order will prevent parsing on that particular link.
 
Andrew Mannell
Reply
How will it convert the wrong way?

You can disable it by changing the querystring order:
Default.aspx?referer=342&ID=362

The parsing script only reacts on Default.aspx?ID={0}, so changing the order will prevent parsing on that particular link.

Not exactly the same but I need to get urgently a result to this question-->
external url --> www.domain.xx/pacientes.aspx to point to www.domain.xx/pacientes.aspx?ID=xxx
direct module does not work due to the .aspx and URL rewrite module on server does not seem to work

any ideas??

eventually I will need the url rewrite www.domain.xx/path/pagename.aspx?ID=xxx but this form is not in the customize URL section. Just www.domain.xx/path/pagename.aspx or www.domain.xx/pagename.aspx?ID=xxx

hope you can help

Andy


 
Nicolai Høeg Pedersen
Reply
Hi Andy

Direct Path module should work - make sure you have the 404 handler setup correctly - check installation docs.

 
Andrew Mannell
Reply
Thanks for the fast response, I have checked the installation manual, all seems setup correct. I have attached is a image with a few screens to show.

The url is live http://www.biogenidec.es/pacientes.aspx should work like the http://www.biogenidec.es/pacientes



screens.jpg
 
Andrew Mannell
Reply
Thanks for solving this Nicolai.

 

You must be logged in to post in the forum