I am linking my navigation bar list items to includes folder page with href Attribute
<li>Brands</li>
I have tried copying full path
I have tried setting permission on htdocs to 777 but still not working.
My code and folder structure
I am using new Ubuntu machine (16.04) with XAmp
This is my error :
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
You are putting wrong path
This is your site url
http://localhost/FoundationFlex/
and this is your file path
Brand
replace your code with this <li>Brands</li> or <li>Brands</li>
the problem in your href link is that you are giving a file path in browser, which correct but not executable nor a website url so it will always throw a 404 error which means the web page doesn't exits.
You are trying to link using PATH on server, use URL instead and make sure this file is accessible from browser
<li>Brands</li>
You are using the full file system path of the file. But you must enter a relative path to your webservers root folder (htdocs).
So if you call your page with http://localhost/ then in your case your webserver root folder seems to be /opt/lampp/htdocs/. Linking the file brands.php in a html link will look like this (relative):
Brands
or absolute
Brands
or (but this one should have the same result ase the one above:
Brands
These links can help you:
https://www.coffeecup.com/help/articles/absolute-vs-relative-pathslinks/
https://www.w3schools.com/html/html_links.asp
If /opt/lampp/htdocs/FoundationFlex is your servers DocumentRoot you can just
Brand
Related
I have a php project and I can't acess my file when I go in my browser: http://localhost/www/main/index.php.
However, when I go to http://localhost, it displays all my folders of my project.
For information, I'm using LAMP.
The error is just that it can't find the url http://localhost/www/main/index.php
Here is the folder structure of my app :
Could you help me please ?
However, when I go on http://localhost, it displays all my folders of my project.
As per your picture, the URL of the folder which displays all these subfolders of your project is actually http://localhost/VetDev.info, not http://localhost.
Therefore
http://localhost/VetDev.info/www/main/index.php
is the correct URL to your index file.
So when I try to access http://localhost from Chrome it directs me to WAMPSERVER Homepage and it doesn't show me the html or php files that I have in the www folder. What should I do?
If you want to access anything except ixdex.html or index.php, you will need to
provide the absolute path in the url like
http://localhost/your_folder/page.php Or based on url_patterns defined in rewriter config.
If you don't specify the page file name then the file with the name index.html is displayed, which is happening right now.
On localhost, in one of my folders, files are accessible like http://localhost/folder/map instead of http://localhost/folder/map.php. It's probably because of something wrong with Apache's configuration but I'm stuck here and nothing comes to my mind.
If you have a file called index.php or index.html in your http://localhost/folder/map folder, Apache will run that file when you just enter the directory name as a browser url.
This is what makes http://localhost run a page rather than just showing you a directory listing, or show a blank page.
This is probably the reason that you see a valid page when just keying in the http://localhost/folder/map url.
Greetings ! I have a project that has php index.php file in /htdocs. Also include files like dboperaitons.php, config.php and css file also in /htdocs/themes. Now I set up New site in dreamweaver opened the index.php file, it is running fine , but when I click on properties and ry to add or modify css property from dreamweaver, it gives me error saying unable to open file http://localhost/themes/en.css file because it is not found in the hard disk.
1. Why is it searching for file as http://localhost instead of c:/xampp/themes.
2. It says en.css file is remote file and cannot be edited.
How can I resolve this. Please guide.
you can fix this problem by browsing the file manually from its location.
When you define a site in Dreamweaver you need to make sure you set up both the local and remote locations in order for it to know where files are. It sounds like you have not defined the local site folders properly and DW is confused about where things go.
This link
http://localhost/
works fine.
This link doesn't work
http://localhost/shlingy/
directory location
C:\wamp\www\shlingy\index.html
Does anybody know why this link does not work?
Check whether there is a .htaccess file in www or www/shlingy directory or not. If there is, rename or remove it. Probably a rewrite rule in that file is causing the problem.
Also, make a index.html file in the www/shlingy directory which will be displayed when you access the shlingy.
It was a mistake on my end that i call a constructor of PHP file at the start page but that file contain an error. Its annoying that server just show blank page instead of error Massagining