Solved

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

Posted on 2011-09-30
1
509 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now