H
H
heIIfire2017-02-05 04:19:45
htaccess
heIIfire, 2017-02-05 04:19:45

Why does it give an error when redirecting to .htaccess?

RewriteEngine On
RewriteRule ^(.*)$ /public/$1
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
the public folder is in the same directory as .htaccess, and it contains index.php

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2017-02-05
@politon

RewriteEngine on
RewriteRule  ^$ public/ [L]
RewriteRule  (.*) public/$1 [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question