perhaps double check the .htaccess file and permission is configured accordingly...
Apr 29, 2020
7
Level 1
My local project is not working on VPS
Hi, I am using Ubuntu 18.04.4 LTS on my computer. Also, I use Ubuntu on my VPS too. While I am working locally It seems okay. When I upload my files to VPS via FTP, Only my index is working. Other pages give 404 error.
I know using FTP is not a very good way to upload local files to live server but I couldn't understand using a deploy extension. I am using VS Code by the way. If you can help me to configure deployment tools to I will be very pleased. Thanks.
Level 1
I solved it. I added the below lines to my apache config file on VPS.
Rewrites for pretty URLs, better not to rely on .htaccess.
<Directory /path/to/our/public>
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
</Directory>
Please or to participate in this conversation.