1) If I enter a random page into the address bar, such as "mattkunin.com/fdsanfksdnfkjsdnfkdsbfgjrbvjkfbjaskfheiruebfaeiylkrbgio," it auto-redirects to my 404 page, specified by Godaddy (which just so happens to then redirect the user back to the home page). This is good. However, the issue comes when I enter something random, yet with the file extension ".php" at the end. If I enter "mattkunin.com/fdsafiofiosdfio.php," I would hope it would also auto-redirect to my 404 page, since I don't have a file under that name, but this isn't the case. Instead, I get the output "No input file specified." Obviously, I'd like for this to mimic the behavior of what happens when I simply enter random text (w/o the ".php" at the end) after "mattkunin.com/."
2) If I try to open a valid page on my site, but without the file extension, it treats it as if I'm entering "mattkunin.com/randomtext." This means that it'll auto-redirect me to my 404 page, which in turn will send me to my home page. I want the server to behave as if I enter in the URL but with the file extension at the end, yet still show the original requested URL.
Example of what I want:
- I request "mattkunin.com/contact," and it will load my contact.php page, but keep the URL in the address bar the same (w/o the extension).
3) How can I make it so that all URL requests made will end up starting with "http://www?" This way, no matter what's entered into the address bar, the end result will always be "http://www."
My web.config file:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> </system.web> </configuration>
This post has been edited by matt12345: 18 April 2013 - 07:55 PM