Http 404 error when I type address in.
tadm said 11 months, 3 weeks ago:
Having an issue, whenever I try to access my website (secondary website on my hosting, not primary) I get this error -
You don’t have permission to access / on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at amber-heard.org Port 80
How do I go about resolving this? Something wrong with the way the files are hosted or what? Help would be much appreciated.
chrisg said 11 months, 3 weeks ago:
@tadm,
This often occurs if the subfolder you are directing the domain name to does not contain a valid index page for a site to resolve to. If you have not uploaded an index page for the domain, you will want to do so to resolve the 404 error being encountered.
What file displays when someone browses to my domain name?
Christopher G.
tadm said 11 months, 3 weeks ago:
Thanks for the quick reply. I am having trouble finding out where the index file should be? domain is http://www.amber-heard.org.
Should the index file be amber-heard.org/index or amber-heard.org/gallery/index
I used gallery as an example there, can replace that with /forum /video etc. As when I go to the subfolder in my hosting account there is a lot of folders with website files and a few other files but no index file. I can find various index files as I go to gallery folder, video folder etc.
tadm said 11 months, 3 weeks ago:
Or should it be in the public_html folder? (Sorry, Im a newbie to this)
sven2157 said 11 months, 3 weeks ago:
@tadm
If this is your main page, then it needs to go into the Root directory( the main folder of your hosting ). If you are on a Linux Hosting Plan, than you should rename the file ‘ index.html ‘( <- ALL lower case ), as Linux is CaSe sensitive, whereas Windows is not.
When you create Forums or a Gallery, and you have folders called ‘forum’ and ‘gallery’, then each will have their own index file. When the browser looks into a directory, it looks for the INDEX file to tell it what is in there; thus, each FOLDER you want to display something, you will need a separate file for. Did I confuse you?
Hope that helps! ![]()
tadm said 11 months, 3 weeks ago:
Hello @sven2157,
This is where most confusion stems from for me. As this site is not my primary domain (or primary site, not sure on the wording) GoDaddy suggests uploading all files for secondary sites (using one hosting for multiple sites) into their own subfolders. So I am confused as to where the index file for the secondary site should go, in the folder within the root directory or to the root directory itself along with the files of the primary/main site thats being hosted?
chrisg said 11 months, 3 weeks ago:
@tadm,
@sven2157 would be on the right track.
If you are looking to direct your traffic for amber-heard.org to a Gallery that already has the index pages needed, you may want to update your domain alias settings to point to that specific directory.
Managing Your Hosting Account Domains
Christopher G.
Nate D said 11 months, 3 weeks ago:
@tadm – Just to help illustrate what @sven2157 was pointing out.
If you put an index file in the root, or yourdomain.com/index.html
it can be accessed without typing the filename or yourdomain.com
The same would go if you put an index file in a folder, or yourdomain.com/folder/index.html can be accessed simply yourdomain.com/folder
If the folder does not contain a file with a default filename, it would not bring anything up unless you type out the URL with the filename…
yourdomain.com/folder/somefile.html
tadm said 11 months, 3 weeks ago:
@chrisg,
Yes I think maybe that’s where I was going wrong. The main site is amber-heard.net and on that site are two buttons “Gallery” and “Video” which when pressed should take you to a gallery and video section at amber-heard.org. There is no “Main Page” or anything like at amber-heard.org, only functions of amber-heard.org are for the gallery and video sections. Would domain alias be used for something like this? If so, how to go about getting that setup? I have recently purchased this site and moved it to a new hosting and thus was unable to see how it was originally set up and now am encountering these problems.
Nate D said 11 months, 3 weeks ago:
@tadm – It appears some of the confusion stems from the terminology as it pertains to the hosting accounts here. The Primary domain would simply be the first domain you would add to the hosting account, any other domain name you add to the hosting account are refereed to as “alias” here (even though they may be pointed to different websites with a Deluxe or higher web hosting plan).
Also I wanted to make sure everyone was crystal clear on how you needed the website set-up. As there are countless ways it could be configured, all depending on what is needed. If you could post back with more details on the different sections you need, and how they would be used.
sven2157 said 11 months, 3 weeks ago:
@tadm
Is there really a need for the second domain( amber-hear.org )? It would seem that you just want to have your visitors for amber-heard.net, be able to visit the gallery, correct?
If that is the case, then all you need to do is upload ALL your gallery files to a folder called ‘gallery’. In this folder you could have ANOTHER ‘index.html’ file, which displays all possible videos/pictures in your gallery.
Then on the main site index.html page( amber-heard.net ), you would just link to the gallery’s main index.html page, like so:
Our Gallery or Our Gallery
As you can see, with the SECOND index.html file in the gallery folder, you could link with or with out the need to include the Gallery’s index.html file, as the browser will automatically pick it up.
Does that help a bit better?
Otherwise, you will need to upload your gallery to a folder on the server, called ‘gallery’. Then go into your Hosting Control Panel, and under the ‘Settings’ tab, look for and click on ‘Domain Management’, click add ‘Add Domain’, type ‘amber-heard.org’ into the ‘Domain:’ box and either: use the browse button to locate the ‘gallery’ folder or add ‘/gallery’ into the ‘Folder:’ window.
Give this a couple minutes to setup, and then you should be able to type ‘amber-heard.org’ into your browser and see the gallery.
You should also note, that you need to go to your Domain Management, and make sure your ‘A’( or ‘@’ ) record is set to your hosting IP and Nameservers.
Hope that helps! ![]()
sven2157 said 11 months, 3 weeks ago:
Ok, GoDaddy needs CODE tags for their forum! ![]()
Let’s try this:
[code]Our Gallery[/code]
or
[code]Our Gallery[/code]
Trying to just add the html code for an anchor link…
Nate D said 11 months, 3 weeks ago:
<a href="/gallery/">Our Gallery</a>
or
<a href="/gallery/index.html">Our Gallery</a>
Nate D said 11 months, 3 weeks ago:
@sven2157 – Instead of [code] [/code] use the quotes that is the same button as ~ (but without pressing shift).
5 min expected wait time