473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Using AJAX in a masked forwarded Domain

I have a domain www.lomas21.es.
That domain is masked forwarded, by the server, to the real stuff at
www.solicon.com.es/lomas21/

AJAX is only working:
- When you go to www.solicon.com.es/lomas21/ and clicks "Cinturones".

AJAX does not work (it rewrites the whole page):
- When you go to www.lomas21.es and clicks "Cinturones".
It gives only there also a script warning 'Sys' not found.

Yake into account that I am talking about the same files where I can go to
with to URL names.

What I want is that the URL www.lomas21.es is working.

--
Regards,
André Teunissen
www.solicon.es
Oct 22 '07 #1
2 1818
I AM VERY HAPPY TO INFORM YOU THAT WE HAVE SOLVED THE MISTERY.
THE SOLUCION FOR MASKED FORWARDED DOMAINS USING EXTERNAL SCRIPTS
----------
IN MY CASE THE SOLUCION FOR ASP.NET 2.0 / AJAX
1 - download the FOR FREE UrlRewritingNet.UrlRewrite 2.0 Binary from
http://www.urlrewriting.net/en/Download.aspx
2 - read with a smile THE SPLENDED help from
http://meadowsdesign.com/blog/?cat=9
3 - add to your bin directory: UrlRewritingNet.UrlRewriter.dll
4 - update Web.Config as follows
a) remove section <configSections>
b) add the new section <configSections>
<configSections>
<section name="urlrewritingnet"
restartOnExternalChanges="true"
requirePermission ="false"
type="UrlRewritingNet.Configuration.UrlRewriteSect ion,
UrlRewritingNet.UrlRewriter" />
</configSections>
5 - add new section below the </configSections>
<urlrewritingnet>
<rewrites>
<add name="WebResourceFix" virtualUrl="^~/WebResource.axd(.*)"
rewriteUrlParameter="IncludeQueryStringForRewrite"
destinationUrl="~/WebResource.axd$1″”" ignoreCase="true"/>
<add name="ScriptResource"
virtualUrl="^~/(.*)/ScriptResource.axd(.*)"
rewriteUrlParameter="IncludeQueryStringForRewrite"
destinationUrl="~/ScriptResource.axd$2″”" ignoreCase="true"/>
<add name="ReplaceRoot" virtualUrl="^~/(.*)/(.*)"
rewriteUrlParameter="IncludeQueryStringForRewrite" destinationUrl="~/$2″”"
ignoreCase="true"/>
</rewrites>
</urlrewritingnet>

6 - remove the complete section <system.web.extensions>
7 - add in the <httpModules>
<add name="UrlRewriteModule"
type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />

¡ THATS ALL ! HAVE A VERY NICE DAY
--
Regards,
André Teunissen
www.solicon.es
"André" wrote:
I have a domain www.lomas21.es.
That domain is masked forwarded, by the server, to the real stuff at
www.solicon.com.es/lomas21/

AJAX is only working:
- When you go to www.solicon.com.es/lomas21/ and clicks "Cinturones".

AJAX does not work (it rewrites the whole page):
- When you go to www.lomas21.es and clicks "Cinturones".
It gives only there also a script warning 'Sys' not found.

Yake into account that I am talking about the same files where I can go to
with to URL names.

What I want is that the URL www.lomas21.es is working.

--
Regards,
André Teunissen
www.solicon.es
Nov 5 '07 #2
I AM VERY HAPPY TO INFORM YOU THAT WE HAVE SOLVED THE MISTERY.
THE SOLUCION FOR MASKED FORWARDED DOMAINS USING EXTERNAL SCRIPTS
----------
IN MY CASE THE SOLUCION FOR ASP.NET 2.0 / AJAX
1 - download the FOR FREE UrlRewritingNet.UrlRewrite 2.0 Binary from
http://www.urlrewriting.net/en/Download.aspx
2 - read with a smile THE SPLENDED help from
http://meadowsdesign.com/blog/?cat=9
3 - add to your bin directory: UrlRewritingNet.UrlRewriter.dll
4 - update Web.Config as follows
a) remove section <configSections>
b) add the new section <configSections>
<configSections>
<section name="urlrewritingnet"
restartOnExternalChanges="true"
requirePermission ="false"
type="UrlRewritingNet.Configuration.UrlRewriteSect ion,
UrlRewritingNet.UrlRewriter" />
</configSections>
5 - add new section below the </configSections>
<urlrewritingnet>
<rewrites>
<add name="WebResourceFix" virtualUrl="^~/WebResource.axd(.*)"
rewriteUrlParameter="IncludeQueryStringForRewrite"
destinationUrl="~/WebResource.axd$1″”" ignoreCase="true"/>
<add name="ScriptResource"
virtualUrl="^~/(.*)/ScriptResource.axd(.*)"
rewriteUrlParameter="IncludeQueryStringForRewrite"
destinationUrl="~/ScriptResource.axd$2″”" ignoreCase="true"/>
<add name="ReplaceRoot" virtualUrl="^~/(.*)/(.*)"
rewriteUrlParameter="IncludeQueryStringForRewrite" destinationUrl="~/$2″”"
ignoreCase="true"/>
</rewrites>
</urlrewritingnet>

6 - remove the complete section <system.web.extensions>
7 - add in the <httpModules>
<add name="UrlRewriteModule"
type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />

¡ THATS ALL ! HAVE A VERY NICE DAY
--
Regards,
André Teunissen
www.solicon.es
"André" wrote:
I have a domain www.lomas21.es.
That domain is masked forwarded, by the server, to the real stuff at
www.solicon.com.es/lomas21/

AJAX is only working:
- When you go to www.solicon.com.es/lomas21/ and clicks "Cinturones".

AJAX does not work (it rewrites the whole page):
- When you go to www.lomas21.es and clicks "Cinturones".
It gives only there also a script warning 'Sys' not found.

Yake into account that I am talking about the same files where I can go to
with to URL names.

What I want is that the URL www.lomas21.es is working.

--
Regards,
André Teunissen
www.solicon.es
Nov 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andy | last post by:
Hi All, I have a domain name assume "www.domainnew.com" which I am forwarding to "www.domainold.com/new" with mask. It works fine. My problem is I have a page call login.asp in the directory...
1
by: Dennis | last post by:
I have a domain name I just purchased and forwarded it to my ISP (free) web server. The forwarding works as expected and gets me to my home page. The links written in HTML (anchors) work as...
3
JohanK
by: JohanK | last post by:
Hi there, I need some help with exchange. One of the users that i have to add has multiple email addresses. So when adding the Active Directory User an exchange mail box is created for that...
6
by: Bart Van der Donck | last post by:
Hello, I'm presenting my new library 'AJAX Cross Domain' - a javascript extension that allows to perform cross-domain AJAX requests. http://www.ajax-cross-domain.com/ Any comments or...
5
by: plsHelpMe | last post by:
How to create dynamic javascript arrays using dojo toolkits Hello frens, I am in a big trouble. My objective is: I am having some categories shown by differnent radio buttons, on the click of...
9
by: Trapulo | last post by:
Hello, with ASP.NET 2.0 Ajax every unexpected error is managed client-side with a popup that reports the error to the user. In ASP.NET 3.5 this behavor has been changed: how can I have a similar...
1
by: empiresolutions | last post by:
Hi all, I want to set up one hosting account and access it via multiple domain names. Each different domain name will server the user slightly different content without the user knowing about the...
8
by: pankaj17 | last post by:
hello, Is it possible to communicate with another domain javascript function using ajax. Suppose i have a iframe and domain is different and in the iframe i have some links. If user clicks on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.