Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

How to reference .js file when using Rewriting ?

$
0
0

I have got a pretty simple rule

<rule name="Rewrite to Abogado.aspx"><match url="^Quienes_Somos/([0-9]+)/([_0-9a-z-]+)" /><action type="Rewrite" url="Abogado.aspx?Pe_Id={R:1}" /></rule>

But when in Quienes_Somos/1/JohnDoe .js files are not found and therefore. In my .NET master page they are referenced as this

<script  type="text/javascript" src="js/jquery/jquery-1.11.3.min.js"></script>

I tried this

<script  type="text/javascript" runat="server" src="js/jquery/jquery-1.11.3.min.js"></script>

And this

<script src='<%= Page.ResolveClientUrl("~/js/jquery/jquery-1.11.3.min.js") %>'></script>

but still no .js file being loaded.

What is the right way ?


Viewing all articles
Browse latest Browse all 2482

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>