Is it possible to use two different ErrorDocuments for different paths of a website?
Posted
by
tapwater
on Pro Webmasters
See other posts from Pro Webmasters
or by tapwater
Published on 2012-09-23T21:23:38Z
Indexed on
2012/09/23
21:50 UTC
Read the original article
Hit count: 174
this is my first question on stackexchange and it might be a bit confusing.
I currently run PmWiki (sorry, you'll have to google it, new user can only have 2 hyperlinks) at mydomain.com/pmwiki. I have a 404 page and .htaccess set up in my site's document root for 404 pages regarding anything that doesn't have to do with my wiki. By default, PmWiki handles URLs a little confusingly so I had to use this in order to get it to look like mydomain.com/pmwiki/Namespace/Page I had to create a .htaccess in /pmwiki to remove parts of the URL.
PmWiki also has a custom 404 (Site/PageNotFound) page that has stopped working, now my site uses the /404.htm page.
I noticed this when trying to install this "recipe" to enable case-insensitive URLs. Currently the only way to access Site/PageNotFound is by actually linking to it, and, if you read how that recipe seems to function, this is an issue. Currently mydomain.com/pmwiki/blahblah and mydomain.com/pmwiki/legitimate_namespace_but_lowercase/legitimate_lowercase_page_name both direct to mydomain.com/404.htm.
I have to admit I'm very confused, and I apologize if I was unclear in any of this, but I could definitely use some help. Thanks!
© Pro Webmasters or respective owner