I've just got my website up and when I only type in the domain I get an Index of all the files that I've uploaded, but I want it to load my HTML page when it gets loaded as www.domain.com/domain.html instead I want it to be www.domain.com.
How do I do this? Do I have to contact my hosters or can I do this in the project?
As long as the web server doesn't use wacky configuration, you can just name the main file "index.html" and it will be the main access point to your domain.
Please keep index.html file in top level directory of application. If you do not have index.html file then add new file in top level directory and redirect it using onLoad function to your website home page.
All you have to do is to rename domain.html to index.html and it will be displayed automatically when the site loads.
That is the main page you wish to display when someone visits www.domain.com should be named index.html if it is an html page, if not you use the correct file extension.
A way to keep using domain.html as the main source file. Create an index.html file and add the following code in it.
<script>
setTimeout(function(){
window.location='domain.html';
}, 5000);
</script>
Related
I have a page called en.md and another page called ko.md in a directory. Both files have custom-set permalinks, so en.md and ko.md respectively are not a part of the page URL. Regardless of this setting, to move from en.md to ko.md in normal HTML, all I would need to do is this :
Move to File KO
However, this doesn't seem to work in Jekyll; this link sends me straight to URL .../ko.md, where there is no file (because of that permalink setting), rendering my link unusable. Is there a way to link to a specific file instead of just permalinks in Jekyll-processed HTML? Thank you!
How can I place/name an "intro" page before my index.html so the server reads it first?
That page is not a loader page, it simply has a video with a button for entering the website that Is connected to my homepage which is index.html
(I also wouldn't want to be changing the location of my homepage at this point and turn the video into the index.html which seems to be one option.)
Do you guys have any tips? Thanks!
In an apache server environment create a .htaccess file and place the following code in it:
DirectoryIndex intro.html index.html index.php
Where intro.html is the first page you want to show.
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.
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?
I just created a basic html file and want to upload that file to my website.
So what I've done is, went to cpanel->file manager->/htdocs and uploaded the file(sandy.html).
But the problem is it's not executing on my home page( i.e. sandeep.0fees.net). It's just showing the file that I uploaded.
I think you'll understand better when you see my website.
Where I'm going wrong? What should I do to make that file to run on sandeep.0fees.net instead of sandeep.0fees.net/sandy.html?
Rename your file to index.html
Or call it directly http://sandeep.0fees.net/sandy.html
Try renaming it index.html. There is a setting called a default document and that is the file that is loaded when you end the url without a filename.
If you want it to be the default landing page, call it index.html instead.
You can also add this line to the .htaccess file, in the public_html folder:
DirectoryIndex sandy.html index.php index.html
If it doesn't exist, create it! :)