Custom 404 error page generates 403 - iis

IIS 6.1 - Custom Error pages.
The web site is defined as www.url.com/mysite. Custom error pages have been defined for mysite. 404 and 500.100.
I can redirect to /mysite/500.htm and /mysite/400.htm.
I can set 500.100 to redirect to /global/500.htm and this works.
When I redirect 404 to /global/404.htm I get a 403 access denied error. (I also tried redirecting 404 to /global/500.htm just to make sure it was not file-specific rights.)
Directory browsing is enabled.
The page works if you browse directly to it.
Checked the iis log file for oddities.
Can anyone offer an explanation that might lead me in the right direction?

Related

Why does the redirect to page 404 in MODX not work?

I have correctly configured the resource id in the "site" section in the system settings. But when I enter a mysite/ non-existentaddress in the browser, instead of a redirect to 404, a redirect to the main page occurs
I tried to add in my htacceess file redirect to 404, but it didn’t help
So your error_page system setting has published resource ID as desired 404 page, right?
What do you see here https://www.redirect-checker.org/index.php checking yoursite/non-existentaddress URL?
This setting should work without any htaccess additions, please comment them if any.
BTW how about friendly URLs, is it active now?

403 redirects doesn't work but 404 does. What's wrong, what can I do?

First post around here !
I'm currently working on a website with Wamp and I am having an issue with 403 redirects. I would like to redirect all these 403 errors to a custom page.
In my .htaccess (the file is in www/project with my index.php) I have this two lines:
ErrorDocument 404 /project/views/error.php
ErrorDocument 403 /project/views/error.php
The thing is the 404 errors are perfectly redirected to the error.php page so it seems the path to the custom page is correct but it doesn't work for the 403 errors and still displays me the Apache default error page :
Forbidden
You don't have permission to access (a URL that return 403) on this server.
Please can you help me to understand what's happening because I really dont know why it doesn't work and I've seen lot of similar questions but no good answers yet.
Thank you

/CMSPages/PortalTemplate.aspx throws 404 errors but site still works fine

I have a situation here, on iis logs I see the /CMSPages/PortalTemplate.aspx causing 404 errors but the requests are still fulfilled.
The question that I have is how do I stop these 404 errors from being logged since the website still works. I only want to see the real 404 erros which occur when the request URL is invalid
I am using the Portal Engine approach
In the IIS log, find out what the parameters after the /CMSPages/PortalTemplate.aspx causing the 404. You may be able to see these 404 errors in the Kentico Event Log as well. The majority of the requests to deliver page content goes through the /CMSPages/PortalTemplate.aspx page which is why you're seeing it in the IIS logs.
Once you find the record which has the 404 info, you should be able to find the path to the file and resolve it.
Check your network tab in your favorite browser. Usually there is a favicon or woff font not being served.

Getting 404 on liferay guest page redirection

Getting 404 while redirecting to mydomain.com/web/guest/home
But if given mydomain.com/web/guest/ i am getting redirected properly. To be consistent across environments i want the redirection to mydomain.com/web/guest/home work properly.
I don't have any specific settings in my portal-ext.properties for auth.server.url
What could be the issue?
Regards,
Sankar

Using Joomla, htaccess won't forward pages without an extension to the correct 404 page?

At LTCperformance.com, I've created a custom 404 page. If the user types in ltcperformance.com/fakepage.html, it forwards to the 404 page. But if there's no extension (ltcperformance.com/fakepage), it simply shows a default system 404 page.
I'm controlling the 404 page using htaccess:
ErrorDocument 404 http://ltcperformance.com/404.php
ErrorDocument 403 http://ltcperformance.com/404.php
ErrorDocument 500 http://ltcperformance.com/404.php
I have URL Rewriting in Joomla Administrator = on
Also, in Joomla Administrator, the Adds Suffix to URL = off
Any ideas? I've gone through every answer I can find on other posts and nothing will bring up my custom 404 page if there isn't an extension on the file.
ADDITIONAL INFO:
Any non-existent pages go to the homepage when I do these settings:
- Search Engine Friendly URLs / NO
- Use URL rewriting /Yes
- Adds Suffix to URL /No
I have someone taking a look at it on the server side, but I don't know what server issue it is - everybody online says it's a server issue but the support can't pinpoint what the actual server issue is. It's Godaddy; I did set their 404 page settings (they have a separate place to put it) to my 404 page, but that didn't work either.
Joomla .htaccess routes all requests to the index.php in order to support SEF urls.
In case it can't route a page, it will load the templates' error.php page. You can edit that to your requirements, this will be the easiest.
Should the error.php not be included in your template, copy the one in /templates/system to your template folder and customize it.

Resources