R
R
rivalsm2014-01-20 11:32:35
Apache HTTP Server
rivalsm, 2014-01-20 11:32:35

Why does .htaccess work strangely on a virtual server?

Good afternoon, I moved the site to digitalocean.com and saw that .htaccess does not instruct the server the way it does on the local machine and did it on another site. The main feature is that the so-called. The CNC works even with an empty .htaccess, i.e. the pages open as example.com/about/ when the script is actually located at example.com/about.php. From here and for all RewriteRule, you have to add .php to work properly. Installed LAMP on Ubuntu. Maybe it's some default configs or what's the catch?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rivalsm, 2014-01-21
@rivalsm

The MultiViews directive, hitherto unfamiliar to me, has been included in sites-enabled. The problem was solved by turning it off.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question