When opening website, index.html doesn't automatically open? [closed] - html

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
When going to my website, qlite-usa.com, index.html does not load. I get an error message on the main page. But if I go to qlite-usa.com/index.html, the website loads just fine.
How do I make it so qlite-usa.com automatically sends me to qlite-usa.com/index.html?
I've tried changing index.html to home.html and others, none of that worked.
I use godaddy.

As mentioned in the comments, this is a server configuration issue. If it is allowed by your host, try creating a file in your root directory named: .htaccess (yes, it is a file with no name, just an extension). Inside this file, save the following content:
DirectoryIndex index.html

If you told us what company you use for hosting we might be able to do research to see what the server uses as the default homepage.
90% of the time it's index, but it can be other things, like default.html. Also, maybe try the extension .htm vs .html. It will make a difference.

Related

Microsoft azure cant detect my HTML file and Images for a static website? How do I fix this? [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 days ago.
Improve this question
I'm not sure what is wrong, I've tried copying and moving all the contents to another folder and tried again but it still does not detect the HTML file nor does it detect the images in my image folder. Is there something wrong with my folders? or is Microsoft Azure the problem? I'm trying to host a static website using Microsoft Azure. I followed steps from a youtube video I've watched (https://www.youtube.com/watch?v=ttmEOLKk3Cw&t=321s&ab_channel=JohnSavill%27sTechnicalTraining) this is the video and when I reached 4:00 minutes that's where the problem started.

How to manage static files in shadow-cljs? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
For example, I have an index.html for the project.
I'd like that whenever I build the project, it's automatically copied to the public project. Is there a built-in way to achieve this?
There is a built-in hook to copy (and potentially modify) a HTML file.
In can be configured in your build config via
:build-hooks
[(shadow.html/copy-file "src/html/index.html" "public/index.html")]
All paths are relative to the project root. This only copies that specified file, nothing else. You could write your own hook to copy more or just use a separate command to copy the files manually.
I typically just put all the files in their "final" place from the start and just have a public/js folder or so that is git-ignored that I can delete and will be recreated when I build my CLJS. That way there is no need to copy anything to begin with. ;)

Is it possible if the website is built on WordPress and landing page is built on html to link on same domain or using subdomain [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
Is there possible if the website is built on WordPress and hosted on domain (example.com) and if I want to create one landing page which should be built with HTML/CSS but will be the host on same subdomain (example.com/example)? if yes how to do it?
You can install WordPress in the example folder and it will run quite happily from there without interfering with what's in the top-level. Just have to make sure that the WordPress Address (URL) and Site Address (URL) in the General Settings include the folder too - ie, http://example.com/example
As a proof of concept, have a look at https://www.pad-fairs.com - the top-level index is a stand-alone index.php file (but could be .html - I just use php to change the date order of the links) and each of the 3 sub sites are separate installs of WordPress in their own folders.
Hope that helps

Unwanted Script being added to all HTML pages in all browsers [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I don't know why but this has been happening for a while now:
In every browser (Chrome, Firefox, IE) there is always a script attached at the end of the code.
That's the script:
http://cupons.dantis.com.br/api/app/landing.php?app=QUMtMjItMEItQkQtODAtQUQ=&aff=999999&partner=999999
It's an adware or something, I blocked the domain coupons.dantis.com.br on my hosts file only so the php script won't run and gather my personal info.
But the script is always there anyways, I have tried unninstalling the browsers and the extensions, I have removed many programs that seemed suspicious, nothing.
I ran Junkware Removal Tool, AdwCleaner, antivirus, Malware Bytes.
I'm desperate.
I need to track the process behind this script inclusion or a way to block it trough the browser.
Image:
Ok, got it!
There was a process called viva.exe
I tracked down the folder where the exe was at, and closed the process. Then deleted the file.
The script is gone.

URL for web hosting [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
The person I use for hosting my website has told me that my website will look like this in the browser.
http://www.website.domain/folder/index.html
I would prefer the site to look like this:
A - http://www.website.domain/
or
B - http://www.website.domain/index.html
I am almost certain this is possible, and they just do not know how to set some kind of file path. This is a one page html site and the entire site is contained within 1 folder. So I have decided to go and find a company that will host my site (i.e. 1and1.com).
First, how do I set up web hosting for either of my preferred ways? What is the preference among web developers on preference A or B?
Second, what would be the consequences of adding a second folder containing another website. Would the second website still be able to have a URL of style A or B without interfering with the first website?
Just configure your web server's document root for each vhost accordingly. If your web host won't do this for you, or doesn't let you do it... find a new web host.
There's a good tool called mod_rewrite for that.
Getting started: http://wettone.com/code/clean-urls
Complex examples:http://httpd.apache.org/docs/2.0/misc/rewriteguide.html