I need help to find a code that will hide the file location on the server, like instead of showing:
http://cbuy.webs.com/file.html
I would want it to show: http://cbuy.webs.com/
for the whole site.
can and will anyone help me please?

Recommended Answers

All 2 Replies

This once again is not related to Java script, just set the default page in your webserver as "file.html" for that specific folder and voila when anyone types "http://cbuy.webs.com/file.html" he will see the file in his browser but "http://cbuy.webs.com/" in the address bar,
But why would you want to hide that is a mystery to me ??

one thing can be done. Bring all the content of file.html through HTTP response and put it on index.html by using javascript(innerHTML).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.