Making a website with folders
Autor: D.G. B.
Visited 1636,
Followers 1,
Udostępniony 0
Is it possible to make a website with folders?
Now I can make website.nl/folder.html as a link but most people go to website.nl/folder
Then they get a message that it is''nt found. It is automaticly searching for website.nl/folder/index.html
How can I solve that problem?
Posted on the
It should be, for example...
website.nl/folder/pagename.html
Hello D.G.B
Normally you have your website in the root.
But you can ( also ) make folders ( subfolders ) from the root. In each folder you can have a site.
When you publish your project, you can publish it to a subfolder.
Example : you publish your project to : website.nl/folder01
Then - when someone gp to website.nl/folder01, then there will be an index.html ( or php ) in the website.nl/folder01 and the user will see a website.
You can make a website in the root. Then let's say you need a site where you have some archive material, and you want a separate site for this. Then you make a project ( a site ) for the archive material, and you put this in a subfolder.
You can now in your main-project ( the site you have in the root ) have a menu point that directs to website.nl/folder01 where the archive site is, and the user will then see a "new" site ( the archive site ).
So - you can in one domain have more websites, by making subdirectories and in each of these put a site ( project ).
It could also - instead of a site - be a calendar system, or some other system, you put in a subfolder.
But always : When you type in website.xx/folderxx, the system expects there is an index.html file in the folder folderxx else an error will be reported.
Hope this is an answer to what you were asking for. Else - please refrase your question.
Kind regards
John S.
Autor
Hello John S
Making different sites in subfolders is not the problem. But I'm seeking for a script that I can place in for example the subfolder website.nl/agenda/index.html that wil direct to the website.nl/agenda.html
Okay
Then you can make a redirect in the page website.nl/agenda/index.html that redirects to website.nl/agenda.html
You use some code like this ( in the index.html ) :
<meta http-equiv="refresh" content="0; url=http://www.website.nl/agenda.html" />
The content =0 means that it redirect immediately. If you put in 2, then the redirection will take place after about 2 seconds.
I hope you have it to function
Kind regards
John S.