The requested URL / login was not found on this server

I am trying to configure a local WP environment on my machine. My .htaccess file (which is in the same folder as the index.php file) looks like this:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

My MAMP database must be configured correctly. Every time I try to browse a site in my browser, I get:

Not found

The requested URL / wordpress was not found on this server.

My wp-config.php file looks like this:

define('DB_NAME', 'wordpress');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', 'root');

/** MySQL hostname */
define('DB_HOST', 'localhost');

, permalinks. MAMP, URL ( , .. , URL-/ WP ( , , , - WP).

? , . - !

( , MAMP):

+4
2

a2enmod rewrite

service apache2 restart

+4

, rewrite_module apache.

0

Source: https://habr.com/ru/post/1652090/


All Articles