Send a request

Our Articles

Share our experiences and thoughts.

Drupal 8. Remove index.php from the page URL

Fixed index.php problem in URL pages on Drupal 8

Fixed index.php problem in URL pages on Drupal 8

If the links on the Drupal 8 site contain index.php in the URL, you need to add the following code to the .htaccess file:

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

Другие публикации

Our Blog

Facebook YouTube Instagram Skype Viber Telegram Pinterest