Skip to main content

All Questions

-1 votes
3 answers
870 views

301 redirection for wildcard urls in webconfig rules

I tried lots... I don't get the domain to redirect 301 redirection to wildcard URLs I have https://www.example.com/blog wild card - https://blog.example.com/ I need to redirect the domain this ...
Visakh R krishnan's user avatar
0 votes
1 answer
40 views

RouteConfig - IIS10+C# - Redirect Old Links

Good evening, I'm pretty new on C# and IIS, and I am trying to figure it out about FriendlyUrls. I guess I'm doing good but, I have an issue. Let's say that today my site has all the pages in the /...
Kava's user avatar
  • 21
1 vote
1 answer
2k views

How to use 301 redirect in asp.net

I want use 301 redirect in my website. I try to redirect "http://localhost:54996/AboutUs.aspx" to "http://localhost:54996/About". I use this code in my page load: Response.Status = "301 Moved ...
Morteza Karimi's user avatar
4 votes
1 answer
2k views

HttpClient GetStringAsync returns 301, but browsers are able to navigate to correct address

I thought that HttpClient should be able to handle 301 error code, and redirect to the correct address. However with the following address (https://www.npr.org/templates/rss/podcast.php?id=510298), it ...
resp78's user avatar
  • 1,524
0 votes
0 answers
26 views

How to catch and potential 301 or 404 errors when appropriate?

We had a little mishap where an https binding was created for a website without a hostname (just an ip), and then another website was created with only an http binding to a hostname using the same ip ...
BVernon's user avatar
  • 3,587
0 votes
0 answers
243 views

HTTP GET request to stackoverflow.com returns status code 301

What am I essencially doing is: I input URL (stackoverflow.com) in browser, catch HTTP request with proxy, proceed it to website, then get response from website and relay it back to browser. In theory ...
kmeshavkin's user avatar
0 votes
1 answer
288 views

SEO - correct way to redirect 301 for crawler

I have a problem with Google's crawling and I am not sure if its a technical problem. Basically we redesigned our site a bit so we 301-redirect users like this: url.com/ --> url.com/en/items or url....
Michael's user avatar
  • 815
1 vote
1 answer
54 views

301 Redirection of website URL

currently we have our website running like this: websitename.com. But we've added multiple languages to it so now all the English content will be available at websitename.com/en and the Russian ...
MAK's user avatar
  • 1,278
0 votes
0 answers
72 views

change old php page to redirection to asp.net page url using asp.net

I have more than 100 page URL link is on PHP URL. And I want that when anybody enters my old URL it will be redirected to my specific URL for e.g:- Old URL:- 1) www.abc.com/index.php?option=...
arun's user avatar
  • 11
0 votes
2 answers
1k views

Change url (redirection) in asp .NET

I am working on a C# mvc application. In my site I have this url abc.com/About/WhoWeAre, where 'About' is the Controller and 'WhoWeAre' is the action name. But i want this url to be returned as abc....
Imran K's user avatar
  • 15
3 votes
1 answer
2k views

HttpClient ignores AllowAutoRedirect directive

I'm trying to perform some HEAD checks using System.Net.Http.HttpClient. It works great on everything except 301 redirects. In that case, HttpClient says the status 200, even though the server said ...
Bex's user avatar
  • 593
0 votes
1 answer
168 views

301 permanent redirect in asp.net 2005

I am having an asp.net application which had being developed using asp.net 2.0 (VS 2005). In that app I am having a method to rewrite Urls. I need to redirect certain urls permanently. I have used ...
JCTLK's user avatar
  • 2,165
3 votes
0 answers
2k views

301 Redirect in Web.Config not working

I am organising my 301 redirect from the web.config. Quite simply the page concerned 'enquiries/callabck.aspx' is not redirecting to 'enquiries/customer-service.aspx'. I've looking around for a few ...
wilsonlego's user avatar
0 votes
1 answer
207 views

is it possible to do selective 301 wildcard redirects in iis7 with C#

Example: -www.google.com/maps/ -www.google.com/ -www.google.com/mail/ For the above url lists, I want to do wildcard 301 redirects for all the url with http://www.google.com/ but not the one with ...
zman's user avatar
  • 189
1 vote
2 answers
2k views

Why does setting WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.Redirect cause SecurityException?

I'm working on a Rest Service in .Net 4, and I need to perform a redirect. A little description of what I'm doing: I have a silverlight application that contains a button. When I click the button, ...
TheTFo's user avatar
  • 791

15 30 50 per page