0

I have a website and I've been searching a lot for this question and can't find anything yet.

Anyone knows how to make links take you to another folder and show the html page without page in URL? Example:

I have a html page called service.html and its on folder /service. I want a link to take me there without displaying in the URL my html file like:

<a href="www.example/service/">click me</a>

And it takes you to the html file and shows your content without displaying the html name in the URL. just www.example/service/ :D

Mario Petrovic
  • 7,500
  • 14
  • 42
  • 62

3 Answers3

0

Calling the file index.html instead of service.html should work, if the website is currently hosted.

tasteslikejava
  • 80
  • 2
  • 10
0

You can use the method @tasteslikejava mentioned, or you can create a .htaccess in the services directory and put in the following information:

DirectoryIndex service.html
Mike Koch
  • 1,540
  • 2
  • 17
  • 23
0

Is that what you want?

<a href="name_of_folder/service.html">link</a>

How to link html pages in same or different folders?

Community
  • 1
  • 1
Naele
  • 510
  • 2
  • 10
  • The OP specifically mentioned: "I want a link to take me there **without displaying the url my html file**" – Mike Koch Jan 18 '14 at 23:57