P
P
php_raper2019-07-23 14:55:25
Apache HTTP Server
php_raper, 2019-07-23 14:55:25

Routes in Laravel and Url, duplicate pages?

Good afternoon!
A router is configured in laravel
There is a rule for get
for example page
/ about
It opens
site.ru/about
site.ru/index.php/about
how to get rid of /index,php/ so that there are no duplicates?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2019-07-23
@VladimirAndreev

if for some reason it is not possible to correctly configure the server, add the application so that it redirects from /index.php/about to /about with status 301.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question