K
K
kcarvi2016-01-27 17:40:17
Drupal
kcarvi, 2016-01-27 17:40:17

How to remove “index.php” from url in Drupal 8?

Links look like site.ru/index.php/node/xxx

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dorekino, 2016-01-29
@kcarvi

Add this code to .htaccess:
RewriteCond %{THE_REQUEST} /index\.php(/(.*?))? [NC]
RewriteRule ^(.*?)index\.php(/(.*?))?$ /$1$2 [L,R=301,NC,NE]
proof

T
Tlito, 2016-01-27
@tlito

either reconfigure the server or reinstall

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question