WordPress makes 404 error when going to domain folder

Thanks for everyone will to help. After a long search I found solution! Here is help for others if need: Im quote: To exclude the subfolders from the WordPress rewrite rules, you need to edit the .htaccess file and change the bold line below: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} …

Read more

How to install WordPress on sub directory in ubuntu 16.4 in same vhost with AngularJS

I found the answer server { server_name www.example.com; return 301 $scheme://example.com$request_uri; } server { listen 80; server_name example.com www.example.com; return 301 https://example.com$request_uri; } server { listen 443 ssl; server_name example.com www.example.com; root /www/sites/Yoga-Frontend/dist/Yoga-Frontend; ssl_certificate /etc/ssl/bundle_example.com.crt; ssl_certificate_key /etc/ssl/example.com_private_key.key; location /yoga { index index.php index.html index.htm; try_files $uri $uri/ /yoga/index.php?q=$uri&$args; } location ~ \.php$ { fastcgi_split_path_info ^(/yoga)(/.*)$; …

Read more