Welcome to WebmasterWorld Guest from 54.234.38.8

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

hide .html extension

     
11:30 am on Feb 12, 2014 (gmt 0)

New User

joined:Feb 12, 2014
posts: 1
votes: 0


I use CQ5 as application server and apache as front end. My CQ5 url is ( http://example.com:6703/testclient/en.html). I have configured apache Mod_PROXY to access CQ5 url without 6703 port. When i use apache url http://example.com/testclient , it succssfully redirect to http://example.com:6703/testclient/en.html (please see below proxy setting) Now my concern is i want to hide/remove .html from browser. Please let me know if there is any way using Redirect rule or Proxy rule we can hide url extension.

Apache configuration

ProxyPass / http://example.com:6703/ keepalive=on
ProxyPassReverse / http://example.com:6703/

Thank you,

[edited by: phranque at 7:18 pm (utc) on Feb 12, 2014]
[edit reason] Please Use example.com [webmasterworld.com] [/edit]

3:25 pm on Feb 12, 2014 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


To hide the extension you must first alter the link that the user clicks on the page so that the browser makes a request for a URL without an extension.

Once that has been done, it is then a case of implementing a proxying and/or rewriting operation so that the incoming request makes the server internally fetch the right content and send it out to the browser.

Everything begins with the click.