Arghhh, what is the URL structure for my Domain folders

lotuscha

Member
Messages
33
Reaction score
1
Points
8
I don't know where I'm screwing up... I have a few directories under the PUBLIC_HTML directory.

I used to be able to type in the URL... https://
MyDomain.x10host.com/DIrectoryName and view the files in that directory.

For some reason that doesn't work anymore. Any Thoughts???

Cheers,
Len
 

spacresx

Community Advocate
Community Support
Messages
2,183
Reaction score
195
Points
63
i do not see any services associated with your forum user name.
 

ctyrd

Active Member
Messages
914
Reaction score
79
Points
28
Create a .htaccess file in the directory with "Options +Indexes".
 

lotuscha

Member
Messages
33
Reaction score
1
Points
8

lotuscha

Member
Messages
33
Reaction score
1
Points
8
i think you had a similar issue here
https://community.x10hosting.com/threads/website-url-gives-404-error.208726/#post-983429

when creating a subfolder you need to include a .htaccess file

Well, I reread that thread and followed all the recommendations however I still get the 404 error.

The .htaccess file contains:

Options +Indexes
DirectoryIndex index.html
#IndexIgnore *


I have three image files and an index.html file in the subfolder "test', which is under the "public_html" subfolder under the "domainName.x10host.com" subfolder below the "domains" folder.

Should I put an .htaccess file in the "domains" folder and all the subfolders?
 

lotuscha

Member
Messages
33
Reaction score
1
Points
8
BTW, I checked the file and folder permissions, files are 644 and folders are 755.

Entering the URL domainName.x10host.com prompts a message "Apache is functioning normally".
Changing the URL to domainName.x10host.com/index.html gives the same message but does not seem to process the index.html file.

I've tested the index.html file locally and it works fine.
 
Last edited:

lotuscha

Member
Messages
33
Reaction score
1
Points
8
Try this, htaccess in public_html: DirectoryIndex disabled

htaccess in directory:
DirectoryIndex disabled
Options +Indexes

Directory denied indexing: Options -Indexes
Thanks for your reply! I'll give that a go however I'm a bit confused as to which lines to actually include in the public_html .htaccess file...

just these two lines OR???
DirectoryIndex disabled
Options +Indexes
 

lotuscha

Member
Messages
33
Reaction score
1
Points
8
One other bit of weirdness...

If enter my domain URL in the Chrome browser, all that's displayed is the message "Apache is functioning normally"

If I enter the same URL in Firefox, it processes the Index.html file and displays the webpage properly.
 

ctyrd

Active Member
Messages
914
Reaction score
79
Points
28
Thanks for your reply! I'll give that a go however I'm a bit confused as to which lines to actually include in the public_html .htaccess file...

just these two lines OR???
DirectoryIndex disabled
Options +Indexes

In the public_html/htaccess file just this "DirectoryIndex disabled". Then the "Options +Indexes" or "Options -Indexes" work in the sub directories. Must have been an Apache server update or something. Your Post brought it to my attention. Had to figure out what was going on.
 
Last edited:

lotuscha

Member
Messages
33
Reaction score
1
Points
8
In the public_html/htaccess file just this "DirectoryIndex disabled". Then the "Options +Indexes" or "Options -Indexes" work in the sub directories. Must have been an Apache server update or something. Your Post brought it to my attention. Had to figure out what was going on.
Thanks again! I actually included all these lines in hte sub directory .htaccess:

htaccess in directory:
DirectoryIndex disabled
Options +Indexes
Directory denied indexing: Options -Indexes

and I now get a directory listing! I'll use this in the sub directory where I want to list the contents.

In the other sub directories I have gone back to using an Index.html file, and those .htaccess files only contain:


#Options +Indexes
DirectoryIndex index.html
#IndexIgnore *


I no longer get the 404 message but the Index.html file doesn't get processed, I only get a blank screen.

BTW, these changes only seem to work in Firefox, not Chrome.
 

ctyrd

Active Member
Messages
914
Reaction score
79
Points
28
I'm using chrome, everything works. Options -Indexes sends users 403. If you know the file name in the directory it will still process the file. I'm not sure what you're trying to achieve. I thought you wanted to see files in a directory. Then use Options +Indexes.
 

lotuscha

Member
Messages
33
Reaction score
1
Points
8
I'm using chrome, everything works. Options -Indexes sends users 403. If you know the file name in the directory it will still process the file. I'm not sure what you're trying to achieve. I thought you wanted to see files in a directory. Then use Options +Indexes.
Yes, I do want to show files in one specific directory, I have a couple of other directories where I actually want the webpage to display, not the directory listing.

Ya, I don't get why Chrome doesn't seem to play well. Firefox works fine to display the directory listing, as does Internet Explorer but neither seem to display the Webpages correctly, just a blank screen.

If I click on "Parent Directory" when viewing the directory that lists the files, I go to my Domain and the webpage displays properly. Pages just don't display properly when I am in a sub directory.
 

ctyrd

Active Member
Messages
914
Reaction score
79
Points
28
If I click on "Parent Directory" when viewing the directory that lists the files, I go to my Domain and the webpage displays properly. Pages just don't display properly when I am in a sub directory.
What? You have to let me see this.
 

lotuscha

Member
Messages
33
Reaction score
1
Points
8
What? You have to let me see this.
Sure!
Try these URLs and let me know what happens and which browser you are using. Some of my problems may be related to HTTP:// and HTTPS://

http://lotuschaser.x10host.com/
https://lotuschaser.x10host.com/


http://lotuschaser.x10host.com/test/
https://lotuschaser.x10host.com/test/


http://lotuschaser.x10host.com/test/test.html
https://lotuschaser.x10host.com/test/test.html

Whenever the browser automagically inserts https in the URL, I get a 404 message, otherwise everything seems to work, that is except for the root domain "https://lotuschaser.x10host.com/" where it only displays the "Apache is functioning normally" message instead of processing the index.html file.
 
Last edited:

ctyrd

Active Member
Messages
914
Reaction score
79
Points
28
Sure!
Try these URLs and let me know what happens and which browser you are using. Some of my problems may be related to HTTP:// and HTTPS://

http://lotuschaser.x10host.com
https://lotuschaser.x10host.com

http://lotuschaser.x10host.com/test
https://lotuschaser.x10host.com/test
You have not installed a SSL certificate, so https (secure) will not work. http is working as expected. http looks for index.html and loads in web browser. As long as it has markup source code. test.html will just show the file in index directory. Unless you add it to the url.


I only have chrome, site working as expected.
 

lotuscha

Member
Messages
33
Reaction score
1
Points
8
Thanks for that. Any idea how I would implement/install a Certificate?
 
Top