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
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 months ago.
Improve this question
I have the following problem. I downloaded a web page with the wayback machine downloader. The wayback machine downloader saves the query strings with %3f because question marks are not allowed in Windows Explorer. For example, when I go to the splash.aspx?page=3 page, nothing happens except that for each value after the ?, the same page appears. How can I assign different pages with the query strings?
Btw: I use IIS for hosting.
The problem is that the downloader creates a static copy of the site. There won't be any server-side processing. Multi-page processing requires that.
Assuming that the wayback machine actually iterated through all the pages, you will need a different downloading tool that can find them all, creating static versions of each page and rewriting the links for each, since the wayback machine downloader doesn't know how to do paging itself.
But really, stepping back, I think what you're trying to do is the problem. Wayback Machine is for creating snapshots of sites at a point in time. It's goal is not to backup and restore the backend functionality. (Which it can't do, even if it wanted to, since it doesn't have access to the backend of every site on the internet.)
You didn't specify what your final end goal is, but my guess is that while the wayback machine might be able to be used to scrape the data, you'll have to write your own server code and website if you want to redeliver it again. (And assuming you have the rights to do so.)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
H!
I have created a website, where all the files are of the type CSS, js, pug, and when I want to publish the site, I need to give an index.html file from which the site will start. The problem is that I do not have such a file.
Does anyone know how to deal with such a problem?
And in addition, I started the site by running it in localhost: 3000 does anyone know how to start it now so that it will work when I upload it.
Thanks in advance to all the helpers.
Your mention of localhost:3000 implies that you have written a website which depends on Node.js for server-side code (at a minimum this will involve the translation of your Pug templates into HTML on demand).
There are two general approaches you can take to solve this problem:
Find hosting which supports your server-side code and deploy your Node.js application to it. (This will not be typical static or shared hosting).
Generate static HTML documents from your application and upload those HTML documents. (The specifics will depend on exactly what your server-side implementation does and will probably be a significant amount of work. Typically if you wanted to take this approach, you would have used a framework designed to output static sites from the outset).
Obviously if you have your server-side code processing user input (such as form submissions) option 2 will not work.
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
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.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
Any way to know the absolute path of a resource (an image for example) in a web site when I load it in the browser?
For example, if an image is in /var/www/project/web/images/foo.jgp I want to get that path.
In localhost I mean.
Regards
Javier
If you're talking about trying to get the path for an image on a public website (where you don't have access to the web server), you're not likely to find it. Think about this for a minute. It's a security issue. Nobody wants the actual address on their web server to become public information. That would make it much easier for a hacker to gain access. You already know the IP address, so all you need is the drive name and root folder name, and you're in.
This doesn't take into account that the images may be stored on a different server(s), such as a CDN, which would store the images on multiple servers around the world for rapid retrieval. For larger websites these days, that would be quite common. It speeds up website performance.
No there is no way to get that information in a browser.