Questions tagged [public-html]

141 questions
0
votes
0 answers

"404 not found" error after updating public_html

i'm quite of a rookie at programming yet, and i have made a webpage a couple of months ago. Now i had to add some more functions and changes, and uploaded them to the "public_html" folder as it's needed, but after uploading (and yes, file manager…
0
votes
2 answers

js and css files - outside or inside public_html?

I understand that it is a good idea to keep some files outside public_html for security reasons. What about js files? Should I keep all my js files (such as angularjs') in public_html or outside? If I keep them outside public_html, it is going to be…
oasis
  • 197
  • 2
  • 13
0
votes
2 answers

How to access uploaded images/ docs outside my public_html?

How can I access uploaded images/ docs outside my public_html? for instance, I have this structure, lib/ upload/ (uploaded images and pdfs) public/index.php bootstrap.php public/index.php, // Include application bootstrap require_once…
oasis
  • 197
  • 2
  • 13
0
votes
2 answers

Unix folders - where to put intermediate files and results when running a script

I have written a script that checks out some files from a repository, operates on them in some way and produces a result file in html. I would like all users to be able to run the script and view the results independently. This includes one user…
ksl
  • 4,519
  • 11
  • 65
  • 106
0
votes
2 answers

Create absolute link to home directory in public_html folder

I am trying to setup a test server to build websites in. I am using Ubuntu 14.04 with the public_html directory for each of my sites. So when I create a new site, I build a new user on the server and it creates all the necessary items for me (I…
Ron Butcher
  • 489
  • 7
  • 16
0
votes
1 answer

cPanel how to access the public_html via filezilla

I have a big problem with cPanel. I have the access to cPanel but how ever I try to connect to public_html directory it is just impossible. I come so far that I enter the correct server but my uname and pword does not work. So please can someone…
dejaninic
  • 134
  • 2
  • 9
0
votes
1 answer

How do not redirect to /public_html if request is equaled /abc/* for example?

There is such a structure of directories: /public_html /abc .htaccess Now all requests go to the folder /public_html. This is the code of .htaccess: RewriteEngine on RewriteCond %{REQUEST_URI} !public_html/ RewriteRule (.*) /public_html/$1…
user3952787
0
votes
2 answers

How to force www. with .htaccess?

I have looked around and no one seems to be experiencing the same problem as me. I have used: RewriteEngine on RewriteCond %{HTTP_HOST} ^yoursite.com [NC] RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L] However when I navigate to…
joshkrz
  • 499
  • 3
  • 7
  • 25
0
votes
1 answer

Public html folder moved in tmp folder and nothing is working?

I am in trouble. I was trying to access public_html folder of my site and suddenly that folder has moved in tmp folder by drag and drop or I dont know why? Now my site is not working. And there was so many folder in Public_html . In tmp folder it is…
user3777827
  • 344
  • 1
  • 5
  • 16
0
votes
1 answer

Web app accessing code outside public_html

I'm developing a system in which the codebase (php) is located in the /var/tmp/myapp/ directory in the server, although, I need to access/interact with it using an UI that can be accessible via browser. Is this possible, and how, or do O need to…
McRui
  • 1,879
  • 3
  • 20
  • 31
0
votes
1 answer

How do I run index.php in a private folder from index.html

I have a website that has a root html at index.html. I want to redirect index.html to a php file in a private folder one parent above to run an index.php. This file would then render the html content that I need depending on the request. How would I…
andor kesselman
  • 1,089
  • 2
  • 15
  • 26
0
votes
1 answer

How to set up a Php file for the server (shared hosting) on public_html then send it to the right place

I've checked many times on various websites like w3schools, php.net, i'm beginner in Php and i have a problem here. I would like to send a php uploader file on my domain folder on public_html / php. I'm not sure how to code the path of my server,…
user2731506
  • 73
  • 1
  • 9
0
votes
2 answers

Pulling Random Images From A Folder Above The public_html Folder

So I created an image.php file with this code and put it in my public_html folder: and then I put this code in an html page in my public_html folder:
Bogarto
  • 37
  • 5
0
votes
1 answer

Google Adsense for smartphones

I have a website which uses Adsense for the homepage etcetera. Now, I want to replace this one with an mobile ad, also from Adsense. My question is: is this possible? I tried setting the desktop ads to display: none; and implementing a chtml encoded…
Johan
  • 883
  • 1
  • 9
  • 24
0
votes
0 answers

Access File Stored in the Root Directory (as opposed to being a child of public_html)

How do I access file/scripts stored in a subfolder of my root folder from something in a site directory (e.g. access /python/test.py from public_html/site1/cgi-bin/example.py)?
Freesnöw
  • 30,619
  • 30
  • 89
  • 138