Ionic app in Browser

Hi everyone I exported an ionic web project with the command
build --prod --base-href “url_web”

and everything is completed by copying the www folder file online but if i refresh the page or click it enters the browser bar i get an error 404, this does not happen when it is run ionic on the local host. How come this happens?

I solved using this in .htaccess

<IfModule mod_rewrite.c>
    RewriteEngine on

    # Don't rewrite files or directories
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    # Rewrite everything else to index.html
    # to allow html5 state links
    RewriteRule ^ index.html [L]