Not Found The requested URL was not found on this server. Simple HTML CSS website - web

I created an easy HTML CSS website and need to put it into the SFTP server. I used FIleZilla and put everything inside. I did put everything inside the folder of the old website (where URL worked) and now I can't access the URL.
enter image description here output of the webpage.
I put everything inside of the folder.

Related

http-server doesnt work and doesnt display file

I want to work with node and use http-server.
But somehow instead of hosting a local http server with the html file I choose, it just starts a download on the given IP.
It's the HTML file but without the html extension and its just called File.
I really dont know why this is happening - especially because it always worked just fine.
EDIT:
What I did :
I used the command http-server index.html and the given IP didnt displayed my html file but instead just let me download my html file.

Laravel: I can not visualize images when uploading the web to my Hosting

I have a web developed in Laravel, in local I can visualize all the content of the web without problems, I have uploaded the web to my hosting in the domain folder where I want to have the web (it is a shared hosting with several domains), I configured the base of data and modified the .htaccess file. The web loads, however it does not display the logo or the images stored in public / images.
Any idea what this is? I appreciate any guidance
I advance that my web is not in the public_html folder, because that folder is occupied by another web. All the files are in a domain.com folder
This is the method I'm using to call the images src="{{asset('images/test/home/banner-home.jpg')}}"
I have already checked and there are no syntax errors between uppercase and lowercase.
this is the error that I receive in each image:
Failed to load resource: the server responded with a status of 404 (Not Found)
you can do it this way:
in your domain.com, create another folder and move all the files and folders to the newly created folder.
from the newly created folder, copy all the files and folders in public back to domain.com
open your index.php in domain.com and configure this:
i. require DIR.'/newlycreatedfolder/vendor/autoload.php';
ii. $app = require_once DIR.'/newlycreatedfolder/bootstrap/app.php';
i hope all your header files are called using: {{ asset() }} and your logo using {{ url() }}

Clean URL & Image Upload

I have already posted this in a Drupal forum. I currently have problems with uploading images and using clean urls on the site.
When I upload an image to an article page and then I click refresh to view the page, the image doesn't appear. I check for the image url and an example url would be:
http://example.com/sites/default/files/styles/large/public/field/image/01.jpg
but the image would appear if I modify the url on the address bar to:
http://example.com/?q=sites/default/files/styles/large/public/field/image/01.jpg
I have tried:
turning on and off clean urls (sometimes the images appear, but then
they disappear again)
modifying rewrite rules in the the .htaccess file
folder permissions
This happened when I uploaded my site to an apache server and the url changes, but doing it locally on my computer, the url don't change.
I went on another direction with my photos but I figured it out anyway. All I had to do was to delete the .htaccess file in the site/default/files.

is it possible to redirect a link to a pdf file

is it possible to redirect a link to a pdf file?
This is my site: www.mysite.com
And I createad a redirect link that if I open www.mysite.com/documentation - an index.html file will open but for now this index.html file says it's under construction.
Can I redirect the link to a pdf file?
I uploaded the pdf file into the server. So that if I open www.mysite.com/documentation, my pdf named as thedocument.pdf will open.
Is it possible?
If your web hosting provider won't allow you alter the default extensions (i.e. to add pdf) then you could create a HTML page to act as the landing page and then redirect to the PDF.
Details here: http://www.web-source.net/html_redirect.htm
Yes, this is possible. Check your web server configuration that currently points /documentation to index.html, and change it to point to thedocument.pdf.
Be aware that the PDF may or may not load in the user's browser. Some configurations will prompt the user to download the file.
You can achieve this with a modX Weblink.
Upload your pdf to a place from where it is publicly downloadable. For this example I will upload it to modx/assets/content/test.pdf. You should now be able to download your file from http://yourdomain.tld/assets/content/test.pdf.
Create a new weblink resource in modX (Site -> New Weblink) on the base level of your resource-tree. Make it a container and type in 'documentation' as the alias of your resource. You should also make sure, that you already use friendly urls, but your question sounds like you're already doing this.
A weblink has a field to enter the 'weblink' instead of the ressource content. Just use the URL from which you are already able to download your pdf-file. In this example, this would be http://yourdomain.tld/assets/content/test.pdf.
If you now view the newly created weblink resource under http://yourdomain.tld/documentation, you should instantly download a copy of your file test.pdf.

Magento Relative Paths of images on localhost

I have a website based on magento and it works well. Couple days ago I downloaded the website to make a local copy, everything went fine, everything works.
but... on my landing pages, I use relative paths for my images and landing pages dont show the relative paths, I thought it was htaccess problem, so I enabled mod rewrite in xampp, AllowOverrides is on - All, downloaded htaccess file from ftp and copied in my local, development website root.
still the same problem. Example:
<br /> <img title="Headphones" src="/media/pages/home/headphones.jpg" alt="Headphones" width="442" height="200" />
(I edited html tags, it doesnt let me post them here, but they are correct on my websites)
This code works well on my live website, but on my localhost it doesnt load an image. When I check it in firebug, it says "failed to load given URL". URL is correct though, same url works well on my live website.
Any ideas please? help is much appreciated : ))
Edit: If I change relative paths of images in firebug and add two dots before the slash like this >> ../relative path here << then the images show up well, I dont get it, why does it show images on my live website relative paths without two dots in the beginning and why doesnt it show images on my localhost?
You have wrong idea about what path (note that url and path are different things) is relative and what is absolute:
this is absolute path from your domain root and those all are equivalent:
src="/media/pages/home/headphones.jpg"
src="http://localhost/media/pages/home/headphones.jpg"
src="http://productiondomain.com/media/pages/home/headphones.jpg"
this is a relative path from the page/dir you are visiting and are available from this point only (if defined correctly):
src="media/pages/home/headphones.jpg"
If your site is on localhost then your image is looked up from abs.url+abs.path and you should verify that the /media directory is on your domain root. If your site is on some subfolder on your localhost then the path just won't match and you should either rename all paths or add base dir rule to htaccess or base href rule to your html.

Resources