Vladimir Revyakin2017-02-14 19:26:23
Apache HTTP Server
Vladimir Revyakin, 2017-02-14 19:26:23

Apache mod_rewrite.c not working?

Good day, there is a test.ru domain on the falcon, crm was raised, the test page was uploaded to test.ru/index/test
In the site core I create .htaccess with the content
# test/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule  ^$ public/    [L]
    RewriteRule  ((?s).*) public/$1 [L]

In the public folder I create .htaccess with the content
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L]

When I go to test.ru/index/test, it rewrites to test.ru/public/index.php?_url=public/public/index.php
What's wrong with my .htaccess, I took them from the phalcon documentation.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question