Search

You searched for the word(s): userid:754506

Matching Posts

  • Re: Url rewritting

    Hi alec_taylor, If you're looking to redirect the client from "http://example.com" to web domain "http://www.example.com", you can follow the following steps: Open IIS to the site at "http://example.com" that you want to redirect from. Right click the root web site node and go to Properties. Go to the Home Directory tab. Select "A redirection to a URL" and then check "The exact URL entered above". Enter "http://www.example.com" into
  • Re: how i can create a domain like www.domain.com/username

    Hi pappi2008, Creating a domain is not ASP.NET related and has to do with registering with a third-party web server. Assuming you have a domain set up, or are using a local server, please clarify what redirection you want to achieve, as otherwise I have little to no idea what you're asking. Thanks, Max Kukartsev
  • Re: Showing Fake webpage name in addressbar

    bgs264 is correct, and here's some additional info to his answer. Only certain URLs ending with ".aspx" and ".ashx" (, etc...) are processed by ASP.NET, and if you want the fake URL change the extension to be something other than the default ones, or even without an extension, as to type in something like "http://localhost/MySite" and have http://localhost/Default.aspx processed, then you need to add a "script mapping" with the target extension, or "
  • Re: Url rewritting

    Cross-domain redirects? Sure, they are possible and I have done them. They are the ones that change the URL in the client's browser. I was referring to cross-domain URL rewrites that don't change the URL that appears in the client's browser. First of all HttpContext.RewritePath() expects a path such as "/MyApplication/File.aspx", where you only specify the URL relative to the root of the current web server. In other words, you don't get to specify a different domain. Plus
  • Re: Generic handler, images

    Hi orjiani, Could you please be a little more specific in what you mean by "it doesn't shot the image at all"? Thanks, Max Kukartsev
  • Re: How to rewrite the current browser address bar url?

    Hi yotesisoulath, [quote user="yotesisoulath"] Instead of rewriting the url to point somewhere else, how can I modify the current url in the browser address bar to attach the www to the current domain. For instance, if a user was to type http://mysite.com , how can I change it to display http://www.mysite.com on the browser address bar? [/quote] If you're seeking to change the URL displayed in the browser, that's called URL redirection, as opposed to rewriting. Rewriting does the
  • Re: HttpApplication.CompleteRequest() doesnt work

    Hi lax4u, I've tried your code on a local server (but on a much more primitive level of denying access to any URL ending with a certain string) and this is what I've seen: Firstly, for some reason the condition context.User.Identity.IsAuthenticated never seemed to hold for any requests. I believe it is only true if the user has actually been authenticated via username & password. This is definitely something to make sure before proceeding. As for me, I removed that line entirely. Throwing
  • Re: Error using HttpHandler when Ampersand (&) in filename.

    Hi syunka, To answer your first question, if you have the source for the external DLL, and you know the DLL is being used by ASP.NET, you can open the source and in Visual Studio go to Tools -> Attach to Process select aspnet_wp.exe. You should now be able to debug the code. Could you please provide more information about the problem? For example, is the "file not found" coming from IIS or ASP.NET? Also, I'm assuming the ampersand is properly encoded as %26 in the URL. Best regards
  • Re: Url rewritting

    Hmm, it had always seemed to me, when a request comes into a domain, that the only way to "rewrite" the url to another domain is to use a hidden sub-request and to forward the response. Also contributing to this thought was the fact that HttpContext.RewritePath() only takes an absolute path relative to the current root, or domain. Looking at the code at www.urlrewriting.net (code file UrlRewriteModule.cs), in the RewriteUrl(HttpApplication app) method I see that they ultimately use HttpContext
  • Re: Url rewritting

    Hello PranuInfy, From what I see you're looking to rewrite an URL to access a different internet domain . To the best of my knowledge, you cannot achieve that with URL rewriting, only URL redirection :( Within the same domain however, it's a whole different story. For example to have www.sample.com/Home.aspx trigger www.sample.com/Location1/home.aspx , you can do the following. You're looking for an implementation of HttpModule. Add this source code to your App_Code directory: using System;
Page 1 of 13 (124 items) 1 2 3 4 5 Next > ... Last »