How to create a subfolder webpage

html

#1

A "sub-folder", in my case:

Litterally, an actual folder. On the computer.

BUT i've seen THIS:
http://example.com/webpage

but i can only do THIS:
http://example.com/webpage/webpage.html

How can I do a "subfolder webpage"?
EDIT: So "example.com" is an actual webpage, huh?


#2

I know someone knows


#3

please? there is no one trying but i N E E D it.


#4

Seriously... stop spamming and just rephrase your question, it's unclear what you want to achieve.

If you want to create a subfolder you should create a subfolder.


#5

This website doesn't end with .html. I can't seem to create a page like that.
It ends with a subfolder.


#6

Do you use any server? You can achieve this easily by modifying .htaccess file.

If this is a static site you can create this file structure:

- index.html
- /something
--- index.html

and now /something will lead to the second index.html (placed inside this folder). Please note that I assume that index.html is the default name for the web page.


#7

no, it exists on my computer :confused:


#8

To make it visible for others you will have to upload it somewhere and this method will work.

To check how your site will work in the real server environment you can install Python and then in the main directory of your web page run the command:

python -m SimpleHTTPServer

and you will be able to view your page at address localhost:8000.


#9

um... i only want to show it to my dad


#10

It's completely fine, but you still need a local server to use this method. Python with SimpleHTTPServer is the easiest solution, in my opinion.

I don't think that you can achieve this without local server, but I might be wrong.


#11

If you only want to show it to your dads then why does it matter what the URL looks like? Aren't you just showing him the design etc?


#12

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.