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**

mturkonline
Lurker
Level:
0
Reputation:
0
Posts:
3
Likes:
0
Credits:
3
03-04-2020, 02:00 PM
#21
this is good for some newbies who has not real familarize with securities on webhosting

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

rober7
Novice
Level:
0
Reputation:
0
Posts:
22
Likes:
0
Credits:
2
16-04-2020, 08:43 AM
#22
thanks for the codes, there are some that i didnt knew Smile

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

QuinNull
Junior Member
Prime
Level:
0
Reputation:
0
Posts:
59
Likes:
5
Credits:
29
21-08-2020, 02:25 AM
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**

sudo rm rf
I need BTC donations
Level:
6
Reputation:
18
Posts:
438
Likes:
68
Credits:
235
OP
23-08-2020, 08:02 PM
#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**

Sofoklo
Newbie
Level:
0
Reputation:
0
Posts:
19
Likes:
0
Credits:
6
23-08-2020, 08:11 PM
#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**

QuinNull
Junior Member
Prime
Level:
0
Reputation:
0
Posts:
59
Likes:
5
Credits:
29
23-08-2020, 10:14 PM
#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**

cyan1de
Novice
Level:
0
Reputation:
0
Posts:
25
Likes:
0
Credits:
1
23-08-2020, 11:24 PM
#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**

sudo rm rf
I need BTC donations
Level:
6
Reputation:
18
Posts:
438
Likes:
68
Credits:
235
OP
24-08-2020, 12:51 AM
#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**

cyan1de
Novice
Level:
0
Reputation:
0
Posts:
25
Likes:
0
Credits:
1
24-08-2020, 12:58 AM
#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**

sudo rm rf
I need BTC donations
Level:
6
Reputation:
18
Posts:
438
Likes:
68
Credits:
235
OP
24-08-2020, 01:11 AM
#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: 1 Guest(s)