XenForo - How can I make a directory visible to visitors? - xenforo

I have a XenForo board and I want to put some files on the system, for everyone to see. So I created a directory and uploaded files. When I am trying to access it though I am getting a 403 error Forbidden error in the browser. How can I fix that?

Htaccess file and check if there is an access restriction for the folder where the files are located.

Related

CSS is not recognised by browser in localhost

I am creating a login/registration system and I have created a folder structure within xampp as below: htdocs > login_and_registration > css > includes > and then a number of files which are not within a folder. I managed to access the files by changing the permissions for them, however, the browser is not recognising the css and returns a Failed to load resource: the server responded with a status of 404 (Not Found). The reference to the css in my file is /css/boostrap.css and css/style.css and this was referenced via the "stylesheet' and link href. I am not sure what needs to be done to resolve this, however. Can anyone advise, please? Thanks.

styles.css resource not loading when on the server, works locally

I'm new to creating webpages, so perhaps this is really easy and I just can't see it. I have a HTML/CSS template that I am modifying for a new site. When I check the index.html file locally (in Dreamweaver or in browsers) it appears correct. When I uploaded them to the server then the website does not load the images and it appears that the styles.css file is not loading correctly. I have attached a few screenshots to get the ball rolling. As always thanks for your assistance.
Desired Output:
Current Output:
This is likely (later confirmed by asker in comment) a file and directory access right problem.
This can be verified by checking the access logs of the http server.
The solution is to update the ownership and permissions of any problem files so that the http server has rights to them. In this case, it is probably the easiest to examine the permissions of the index.html file and related folders and apply the same permission to the problematic files/folders.

HTML and HTAccess

I have been struggling with this all morning and I have not had much luck.
I am trying to get the following stackoverflow post to work: How to remove .html from URL
Here is my file directory with the htaccess file:
Here is my code that works fine using .html
So I went into sublime text and posted the same code into a .htaccess file as shown here (also in my directory first pic):
I then changed my links and removed .html
But I get an error
If anyone could please tell me what I'm doing wrong I would be grateful! Been bashing my head on this all morning
.htaccess is a file used to control access for Apache web servers. It won't affect anything unless you're running and accessing an Apache server. From your screenshots I can see that you're directly opening a file from your hard drive.
Your browser is saying File not found because you're trying to access a non-existent file. The address bar in your browser should say this:
file:///Users/mikegeng/Documents/GitHub/MichaelGeng.github.io/index.html
.htaccess is used by Apache Webserver. You must install and configure an Apache Webserver and access your site through http://localhost for example.
Currently your .htaccess is completely ignored until your site is served by Apache.

Cannot Access Web Page on Apache 2.2 Server

I've made a simple web page for one of my classes, and uploaded it to an Apache server on campus, from which I'm to view and take a screenshot of.
Before trying to view the page I created a sub-directory on the server to put my HTML file. Once the upload was complete, I changed the permissions on the file to -rwx---r-x and on the sub-directory folder to drwx---r-x.
However, I'm not able to view the page. I keep getting a message saying 403: Forbidden. You do not have sufficient privileges to view this site on this server.
Is there anything else that I need to do to the file and/or folder to be able to view the web page?
Who is the owner and the group of the file?
You probably need to change the file permissions to -rwxr--r-- and directory to drwxr-xr-x

Getting 404 error instead of automatically loading index.php on add-on domain

Server gives a 404 error instead of serving up an index.php or index.html file on the www.domainname.com call. If I type in www.domainname.com/index.php it works fine, but not otherwise. This domain is an add-on domain to my existing cpanel installation, so I don't know if that is related. Permissions are set to execute on the file. I tried creating a .htaccess file in the directory with the following:
DirectoryIndex index.php
This did not work. Wondering how I can troubleshoot this. Running LiteSpeed Web Server on shared hosting. What could be causing this?
When I renamed .htaccess to .htaccess.bak in the parent directory, everything worked as expected. It seems there is probably an error in that .htaccess file that is propagating sub-directories as well. I will need to figure out exactly what is wrong, but that lies outside the scope of this question.
Was tipped off to the idea by: http://www.bluehostforum.com/showthread.php?38079-automatically-serve-index-html-in-subdirectories-solved