Redirecting shtml to html if it exists

Solution Verified - Updated -

Issue

  • If an html file matching the requested file is present, we would prefer to redirect the client to this instead of serving the shtml file. How could this be achieved with a RewriteRule?

Environment

  • JBoss Web Server (JWS) 3.x
  • JBoss Core Services (JBCS)
  • Apache httpd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content