Wordpress on IIS gives HTTP Error 404.3 - Not Found - wordpress

I just installed Wordpress on a Windows 2016 Server. I'm using IIS as the webserver for this and created the web site on port 81. It runs fine locally (http://localhost:81), but when I'm accessing the site outside of the server (from my laptop: http://servername:81) I'm getting
HTTP Error 404.3 - Not Found The page you are requesting cannot be
served because of the extension configuration. If the page is a
script, add a handler. If the file should be downloaded, add a MIME
map.
both in Edge and Chrome.
I added the FastCGI handler mapping in IIS.
Any ideas how to solve this?
Regards,
Nils

Try to update your web.config
Check if enable "URL REWRITE v1.1"

I went to through all the content of my site and there were some references to localhost instead of the server name. That's why these resources couldn't be resolved.

Related

HTTP Error 500.22 - Internal Server Error

I am getting the error "HTTP Error 500.22 - Internal Server Error" on my umbraco login page.
It was working fine few minutes back I just added the local IP address in IP Address and Domain Restrictions on umbraco folder and later on deleted it as well but now it only works when i change the appool from Integerated to classic
I already have validateIntegratedModeConfiguration set to false in my web.config
any other suggestion
There was problem in applicationHost.config file located at C:\Windows\System32\inetsrv\config.
The default website was also pointing to my umbraco website but in IIS it was not showing.
Restored the old version of applicationHost.config solved the problem

localhost IIS error - HTTP Error 403.14

I am getting this error when I goto my localhost site that I setup on IIS
`HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
A default document is not configured for the requested URL, and directory browsing is not enabled on the server.`
What Am I doing wrong?
You need to configure the default document in IIS.
You need to configure IIS so as to point to the landing page of your website.
i.e.
http://localhost\mywebsite\**index.html** <-- or default in some cases

When I switch to https, my pages return a 404 error in Mono + Apache

I am using Mono + Apache for ASP.Net and when I go to the https version of my site it asks if I want to accept the certificate (I check to save it permanently) but then it shows a 404 error page! None of my pages show up under https. How do I fix this?
(What info do you need me to post to help diagnose this?)
I discovered the problem: Apache had a default "example" virtual host file to handle SSL requests. Even though I'd created my own, that one was taking precedence, so the directory of that virtualhost was being served for SSL.

IIS - "The system cannot find the file specified."

I am building an asp.net web application which has been working on local and staging. however, when i deployed to live, there is a little weird issue occurred. below is the live environment details.
live environment:
Server 2003
IIS 6
when the request url is below, if page not found, it will redirect to page 404 configured in the IIS.
"http://www.xxxx.com/folder1/default.aspx"
however, when the request url is below (with a dot in the folder), it will show a IIS default 404 message which is "The system cannot find the file specified." which isn't what i configured in the IIS and it seems like it skips all the http handlers and modules. Therefore, my custom http handler stop working with this kind of url.
"http://www.xxxx.com/folder.1/default.aspx"
My guess it something to do with the IIS setting. i have have several research, there is no other issue like me.
appreciated if anyone can help. Thanks a lot.
Dion
One of the possible reason could be tool such as UrlScan - you need to explicitly configured it to allow dot(.)s in the url - this can be done by editing <Windows Folder>\system32\inetsrv\urlscan.ini and setting AllowDotInPath=1

CustomErrors only catches explicit page links

I have custom errors turned on and when I go to
www.mywebsite.com/video/default.aspx it shows error which corresponds to 404 and this is fine
but when I go to www.mywebsite.com/video/ it shows a generic iis 404 error.
My other pages that have files work fine like
www.mywebsite.com/photo/ would redirect to www.mywebsite.com/photo/default.aspx because files exists and default is setup in IIS.
Please help. Thanks!
The 404 handler specified in the web.config only works for files handled by the ASP.NET runtime. This is why it is working for www.mywebsite.com/video/default.aspx and not www.mywebsite.com/video/, the generic error your observing is the one configured by default in IIS. You will need to go into IIS Manager and set 404's to be redirected to your PageNotFound.aspx.
Here's some more infomtion on configuring custom error messages in IIS 6.0.

Resources