not white with yellow folder...

Status
Not open for further replies.

ShadowStriker

New Member
Messages
206
Reaction score
0
Points
0
i have seen a couple sites from here that have no /blahblah but still they get somewhere instead of that place with the folders....
 

n4tec

Active Member
Messages
3,312
Reaction score
0
Points
36

Akkarin

New Member
Messages
1,654
Reaction score
0
Points
0
I know what you mean, when you go to your site it shows the directory and doesn't load an actual page. Whilst the other guys site loads a page but in the Address Bar is doesn't say "/index.html" or anything.

You have to create a main page such as an index.html in the "public_html" folder that way when some ones goes to your site they will see that page instead of your directory.

I hope this is what you mean, others I've just been talking rubbish for 30 seconds.
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Omg....


What he is talking about is directory indexing. When there is no "index" for the directory you are in, you will see a "list" of files/folders that are in that directory. If you don't want to see a list, you must make a file that can be, index.php, index.html, index.shtml, etc. You can change a directorys "indexing" using .HTACCESS files.


You can change which filenames are considered the "index" file by place this line in a .htaccess file:

DirectoryIndex [filename].[extension]

Example:

DirectoryIndex portal.php


If you want to disbale directory indexing, you add this line to your .htaccess file:

Options -Indexes

To enable:

Options +Indexes


Edit: If you want to create a file, go into cPanel >> File Manager >> go to public_html >> Create New File >> type in the filename+extension.


Hope that helped.
 
Last edited:

Maurice

New Member
Messages
1,930
Reaction score
0
Points
0
NedreN said:
Omg....


What he is talking about is directory indexing. When there is no "index" for the directory you are in, you will see a "list" of files/folders that are in that directory. If you don't want to see a list, you must make a file that can be, index.php, index.html, index.shtml, etc. You can change a directorys "indexing" using .HTACCESS files.


You can change which filenames are considered the "index" file by place this line in a .htaccess file:

DirectoryIndex [filename].[extension]

Example:

DirectoryIndex portal.php


If you want to disbale directory indexing, you add this line to your .htaccess file:

Options -Indexes

To enable:

Options +Indexes


Edit: If you want to create a file, go into cPanel >> File Manager >> go to public_html >> Create New File >> type in the filename+extension.


Hope that helped.

Or just go to cPanel and turn it off >.>
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Different directives in htaccess can be usful to know. You never know when you might need to know something. My opinion would be that, why not learn and be able to do it yourself, then have some "program"/script do it for you?

Wow I just realized how old of post this is/was. Sorry for "bringing it back"
 
Status
Not open for further replies.
Top