E
E
Evgeny Romashkan2018-03-25 11:22:30
Apache HTTP Server
Evgeny Romashkan, 2018-03-25 11:22:30

How to rewrite this rule from nginx to Apache .htaccess?

There is a site in PHP with MVC and a routing system.
To make everything work on nginx, the following lines were added to the site configuration:

location / {
    try_files $uri $uri/ /index.php?$args;
  }

How to register the same for Apache? I'm trying to deploy the site on jino.ru hosting

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2018-03-25
@SagePtr

Most likely, PHP on your hosting is already connected and configured
. And for the router to work, you need to prescribe mod_rewrite rules (RewriteEngine On and beyond, everything that starts with Rewrite)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question