homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

hide .html extension

Msg#: 4644440 posted 11:30 am on Feb 12, 2014 (gmt 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]



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

Msg#: 4644440 posted 3:25 pm on Feb 12, 2014 (gmt 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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved