A
A
Andrey Eskov2019-09-01 14:43:01
1C-Bitrix
Andrey Eskov, 2019-09-01 14:43:01

How to give 404 if the request goes to /index.php/bla?

Good afternoon. Tell me how to set up pages like /index.php/bla/ , /about/index.php/sdfsdf give out 404.
404 works fine, except when there is index.php in the address 404 does not give out

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yaroslav Alexandrov, 2019-09-02
@taurus2790

Make redirects in htaccess at the same time remove duplicate pages

A
Alexander, 2019-09-04
Madzhugin @Suntechnic

404 works fine, except when there is index.php in the address 404 does not issue

No, it doesn't work well for you.
/index.php/bla/ - what do you generally get at such addresses?
With a probability of 80% you have done something in urlrewrite.php and with a probability of 19.99% in the conditional ".htaccess"
You should look at them in their entirety.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question