Solved

Web.config / XML error doing a 301 redirect...

Posted on 2011-09-30
1
511 Views
Last Modified: 2012-05-12
I am trying to do a 301 redirect through the web.config file of our website... the URL i am permanently redirecting is a little funky, so that is why I am getting the following error, but can anyone please look at the error and see if there is a way I can get around this and get the URL to work with a 301 redirect?

xml server error
0
Comment
Question by:ausman89
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 36897882
I do not believe this will work per the error message. I think the reasoning is that you usually redirect the entire page and not based on some parameters in configuration. If it is based on parameters, typically this is done within the dynamic code page itself or via a custom error handling page for 404 error, i.e., invalidate the path so it triggers 404 then hits your custom page that reads the original URL. Since the .NET page can handle that URL (though, usually you have one ? and then other parameters are connected via &) and do your redirection. You should be able to send the response header 301.

Alternatives, you can always try %3F which is the URL encode for ?.

Hope that helps!
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question