P.S. this is how my .htaccess file looks right now, it’s in the root folder:
# BEGIN WordPress
<IfModule mod_rewrite.c>
ErrorDocument 404 /index.php?error=404
RewriteEngine On
RewriteBase /devaleras/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /devaleras/index.php [L]
</IfModule>
# END WordPress
…where /devaleras/ is the path to my wordpress subdirectory.