I have uploaded a file to /var/www/html, which is the document root on my server, but when I go to a browser and type ip_to_server/filename I get a 404 not found erorr page?
folder "www" is the root folder by default. Have you changed it?
If you place your file directly in "www" (www/yourfile) and go to "ip_to_server/filename" it should work.
If you have a folder "html" in "www" and place your file under "html" then you'll need to go to "ip_to_server/html/filename" to access it
Related
i'am new to the hosting/c-panel stuff, and i got a laravel based app installed on my godaddy hosting, the problem is that the application require some files that are placed on the root directory of the server for example http://server.com/images/ajax-loader.gif and the file is placed just there
but when i type the link http://server.com/images/ajax-loader.gif it doesn't find it:
so i need to add a public like http://server.com/public/images/ajax-loader.gif like:
the problem is that the entire app needs to be modified to add a public for every file like that, so is there any way i can access the root folder without adding this /public/ ?
Have you contacted the hosting provider? Usually, they help with these kinds of issues.
Do other images from your 'images' directory load fine? If all images in the images directory do not load in the browser, that indicates either a permission issue or some .htaccess settings. Again needs to be checked at the hosting provider end.
This project worked until I cloned it on a different location, The only route which works now is $route['default_controller'] when I try to access to another route I get an 404 error but I've changed nothing until the last time it worked.
You may hide the index.php from the url by rewritting urls in .htaccess, Please check you have .htaccess file in new location or right base path in .htaccess file.
I installing Zen Cart v1.5, and am at the last steps of the process where I'm required to rename the admin folder. I renamed the folder, and tried to access the admin section by manually typing in the address with the renamed folder. However, it keeps trying to redirect back to the original admin url, giving me the following error:
The requested URL /admin/alert_page.php was not found on this server.
(alert.php is just the page that warns me I need to rename the admin folder -- it's trying to redirect back to this page, even though I renamed the folder.)
This seems to indicate some error with a config file, though the instructions for installation explicitly said that with the current version, it is not necessary to change the config files. (Though, just for good measure I examined the includes/configuration.php file to see if there was an admin folder value I could set, but didn't see any).
I also reloaded the browser cache, to no avail.
Based on where your root zen-cart is installed, you'll want to edit your configure.php file which holds the path to tell Zen cart where the 'ADMIN' directory is located.
For example, I renamed my admin folder to 'control', so I would look for the configure.php file at:
/home/user/public_html/control/includes/configure.php
Look for the defines:
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');
You'll want to change this to reflect the new folder name you renamed your ADMIN folder to:
define('DIR_WS_ADMIN', '/control/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/control/');
define('DIR_WS_HTTPS_CATALOG', '/');
Hope this helps.
Same question and solution for it!
https://www.zen-cart.com/showthread.php?203681-it-doesn-t-work-after-I-renamed-admin-folder-name
where the htaccess file stored in htdocs folder.
I try find it in my development server but i did not find it.
Whenever i try to type url which is not valid it is redirect to home page of site.
I am not able to find out where setting will be stored.
Thanks
Depending on what OS you use, Linux will recognize the .htaccess file as hidden Windows doesn't.
The .htaccess file could be in the root folder of your webserver (htdocs for example).
But it doesn't need to be there by default. If it is not in there by default you can just create one your self
Are your trying to find with server machine by connect with FTP via Filezilla.
If filezilla means you can't see the htdocs file, instead of that you can connect with Winscp means you can find the .htaccess file
I would like to prevent robots to index my web site. I created a robots.txt file with this content:
User-agent: *
Disallow: /
Now I must place this file in the root folder of my website. I try with my ftp software but it doesn't work. The upload failed. As you can see on the picture below, I try at the very top level ( / ). Is it correct? Or do I have to upload the file in the /httpdocs folder?
Thanks.
UPDATE
Here is the content of the httpdocs folder
robots.txt should go where the root of your website is. It looks like you should put it in httpdocs from your screenshots.
To check...copy it there, and navigate to yoursite.com/robots.txt . If you get a 404, then it's in the wrong place. If you see your robots.txt file, you're good to go!
httpdocs is the root of your website.