Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:754506
More Search Options
RSS Available
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
Posted to
HttpHandlers and HttpModules
(Forum)
by
Max Kukartsev
on 11/20/2008
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
Posted to
HttpHandlers and HttpModules
(Forum)
by
Max Kukartsev
on 11/18/2008
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 "
Posted to
HttpHandlers and HttpModules
(Forum)
by
Max Kukartsev
on 11/18/2008
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
Posted to
HttpHandlers and HttpModules
(Forum)
by
Max Kukartsev
on 11/18/2008
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
Posted to
HttpHandlers and HttpModules
(Forum)
by
Max Kukartsev
on 11/16/2008
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
Posted to
HttpHandlers and HttpModules
(Forum)
by
Max Kukartsev
on 11/16/2008
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
Posted to
HttpHandlers and HttpModules
(Forum)
by
Max Kukartsev
on 11/16/2008
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
Posted to
HttpHandlers and HttpModules
(Forum)
by
Max Kukartsev
on 11/16/2008
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
Posted to
HttpHandlers and HttpModules
(Forum)
by
Max Kukartsev
on 11/13/2008
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;
Posted to
HttpHandlers and HttpModules
(Forum)
by
Max Kukartsev
on 11/6/2008
Page 1 of 13 (124 items) 1
2
3
4
5
Next >
...
Last »
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Channel 9:
Jeffrey Van Gogh and Bart De Smet: Inside System.Interactive
WindowsClient:
Runtime Fault Injection using TestAPI
TechNet Edge:
TechNet Radio: Community Corner with John Weston (Episode 1)
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
WindowsClient:
The year ahead, 2010.
TechNet Edge:
FOPE Policies Deep Dive Interview
Silverlight:
Silverlight HVP Design Update
WindowsClient:
Windows Client Developer Roundup for 12/28/2009
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online