Webmaster Security

Htaccess tips **EDITED 03/01/2019**

Submitted by sudo rm rf, , Thread ID: 123047

Thread Closed

RE: Htaccess tips **EDITED 03/01/2019**

#21
this is good for some newbies who has not real familarize with securities on webhosting

RE: Htaccess tips **EDITED 03/01/2019**

#22
thanks for the codes, there are some that i didnt knew Smile

RE: Htaccess tips **EDITED 03/01/2019**

This post was last modified: 21-08-2020, 02:27 AM by QuinNull
#23
01-03-2019, 07:38 AM
wabo Wrote:
# Disable directory browsing
Code:
Options -Indexes

The tweak I didn't even know I needed. Sobasically this will prevent users from seeing this?

[Image: NRYjxAg.png]
QuinNull

RE: Htaccess tips **EDITED 03/01/2019**

OP
#24
21-08-2020, 02:25 AM
Quinnell Wrote:
The tweak I didn't even know I needed. Sobasically this will prevent users from seeing this?

[Image: NRYjxAg.png]

Yes that prevent directory browsing

RE: Htaccess tips **EDITED 03/01/2019**

#25
Thank you this is amazing! Its good for new devs and a really amazing thing to have on these forums!

RE: Htaccess tips **EDITED 03/01/2019**

#26
23-08-2020, 08:02 PM
wabo Wrote:
Yes that prevent directory browsing

Perfect. This will be super handy then.
QuinNull

RE: Htaccess tips **EDITED 03/01/2019**

#27
I've edited a .htaccess file before, to redirect missing pages (i.e a 404 code)viathe ErrorDocument redirect commands,but whenever the 500 error occurs, the default message is displayed from the browser and not the page i want to actually display.

Is there a way to ensure that the redirected page actually appears as directed by the file, or does it have to be redirected to a different webserver?

RE: Htaccess tips **EDITED 03/01/2019**

OP
#28
23-08-2020, 11:24 PM
cyan1de Wrote:
I've edited a .htaccess file before, to redirect missing pages (i.e a 404 code)viathe ErrorDocument redirect commands,but whenever the 500 error occurs, the default message is displayed from the browser and not the page i want to actually display.

Is there a way to ensure that the redirected page actually appears as directed by the file, or does it have to be redirected to a different webserver?

So you want to redirect all 404 pages?

RE: Htaccess tips **EDITED 03/01/2019**

#29
No. The 404 redirects as expected. The 500 does not and displays a default system generated page, not the one I want.

RE: Htaccess tips **EDITED 03/01/2019**

OP
#30
24-08-2020, 12:58 AM
cyan1de Wrote:
No. The 404 redirects as expected. The 500 does not and displays a default system generated page, not the one I want.

Can you share the URL? I can try to see what your seeing

Users browsing this thread: 4 Guest(s)