URL by making another page as intermediate in HTML website - html

I am having an HTML site https://example.com. I have a page named example.html. I want to make my page URL https://example.com/exam/example.html. Where exam is another page.
How to do this in HTML website?
I am using:
but this is not like what i want. How to do this?

I'm pretty sure you'd have to create a directory called exam and have a file called example.html in that directory in the place that serves the domain example.com. :-)

This can't be done as HTML + CSS are both for client side, if you would have made a server then from server side you could have changed this using route.

Related

How single page HTML site without any CMS

I want to make a single page HTML site. I have made the template, but I wanted to know how to make it go live on my hosting.
I have tried many things but none of them work, I don't want to use any CMS, just a plain and simple HTML site. I have both a domain and hosting.
If as "template" you mean HTML file than you should name your file as index.html and upload it via FTP to the work directory of your hosting server.

How to create a link to a html file using the Meteor local server?

Currently, I have an html file which has a basic layout of a login page which has an option for new users to sign up if they're not a member.
I have the following line inside of my html :
Join Us!
What I want to have happen is load up a new HTML page which will be a modal (using twitter bootstrap) that will ask the user to input the correct data to create a login/pass combination.
But this isn't working. It keeps doing the following (doesn't do anything) :
http://localhost:3000/register.html
I'm a little confused whether my HTML is wrong or MeteorJS requires some sort of specific way to do something like this.
You can use a relative url: Example: register.html only
If your file is into the same project, you don't need to put him an url absolute.
Put your register.html file in your project's /public directory and you will be able to access it via /register.html. However that page will run outside your Meteor app and won't have any Meteor functionality per se.
The /public folder maps to / and is normally used for images and other client-side assets. It's common to map /public/images to /images for example.

Friendly URL for pure HTML web site

I have this pure HTML web site published on GoDaddy. What I want to do is create some friendly URL, such as: www.mywebsite.com/friendly-url
The easiest way of doing it is to create a folder called "friendly-url" and put a index.html file on this folder, right?
Is there any easier/correct way of doing it?
And the second question would be: can I create like an alias for a specific page? Let's say I want these both URLs to point to the same page:
www.mywebsite.com/friendly-url
www.mywebsite.com/furl
Please keep in mind this is a simple and pure HTML web site hosted on GoDaddy and I only have access to cPanel.
Thanks a lot for your help!
You can use Mod_Rewrite by putting a .htaccess file in your web root directory. this could help you a little more on how to do it: http://corz.org/server/tricks/htaccess2.php
--Edit
You can also have a visit at this website: http://code.tutsplus.com/tutorials/an-in-depth-guide-to-mod_rewrite-for-apache--net-6708

Hiding page names in the browser

When we launch a website, we usually see webpage name (menu.php or admin.aspx) but I would like to hide that name and show only virtual path or just website name. I don't want it for the first page because I did that with default.aspx but I want to implement it for the whole website.
Showing www.abcd.com/faq/ instead of www.abcd.com/faq/faq.html
Note: My code is not MVC code and server is Apache.
Use .htaccess to rewrite the URL. Millions of tutorials are out there for that ;)
What you are asking is achieved using (for xampp, wamp, lamp or any other apache powered webserver setup) htaccess rewriterules. The rules take the URL and break it into parts that can be modified or used as variables to feed other pages - whilst still keeping the URL you typed. Neat huh!
Showing www.abcd.com/faq/ instead of www.abcd.com/faq/faq.html
call the file placed into the folder faq simply index.html (not faq.html) and then www.abcd.com/faq/
will display the page without the filename. (Make sure, you have defined index.html as a valid Directory index.)
There are more options with using mod_rewrite etc - but since you seem to use a prety static directory based navigation layout, that would be the easiest way.

How I can do this on html

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:
click me
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
Calling the file index.html instead of service.html should work, if the website is currently hosted.
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
Is that what you want?
link
How to link html pages in same or different folders?