0 Replies Latest reply: Oct 4, 2013 6:01 AM by Ashok Kumar Chava-Oracle RSS

    ErrorDocument config is not working

    Ashok Kumar Chava-Oracle

      We are trying to setup ErrorDocument setup in OHS config file. Following is the config details

      <VirtualHost 111.11.32.111:80>

      RewriteEngine On

      RewriteCond %{REQUEST_URI} ^/us/*

      RewriteRule ^/(.*) /cs/Sites?lookuppage=$1&lookuphost=http://www.abc.com [QSA,PT]

      ErrorDocument 404 http://anc.abc.com/us/products12/cycle/two/404Page.html

      </VirtualHost>

       

      With the above configuration if a user tries to access a URL http://anc.abc.com/us/simple/test.html a non-existing page then we are not seeing a error page. But if a user tried something like  http://anc.abc.com/texasdsga.html then the 404 error page show. Its clear that the error page not working because of the Rewrite rule we got, is there anyway to fix this and make the error page work for the URLs like http://anc.abc.com/us/simple/test.html.

      Please let me know if you need more details.

       

      Thanks.