M
M
Max Shcherbakov2018-02-06 14:22:26
htaccess
Max Shcherbakov, 2018-02-06 14:22:26

Need help with htaccess. How to properly set up 404?

How to make .htaccess'e so that when you click on a link like "../index.php/whateverlibberda" was 404? Now it just loads index.php.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Max Shcherbakov, 2018-02-07
@mademax

Fixed by writing this line:
If there is something after index.php/ then it gives 404.

S
ss44v, 2018-02-06
@ss44v

RewriteEngine on
ErrorDocument 404 /index.php

?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question