.HTACCESS, problem when opening a page from a remote server

1

I am setting up a web page created with PHP with Modelo-Vista-Controlador to a remote server. On my local server ( XAMPP ) it works perfect, the URL of this is http://localhost/pagina and this is my code of .htaccess

Options -MultiViews
RewriteEngine On
Options All -Indexes

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([a-z0-9-]+)/([a-zA-Z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)$ index.php?c=$1&a=$2&id=$3&estado=$4 [L]
RewriteRule ^([a-z0-9-]+)/([a-zA-Z0-9-]+)/([a-z0-9-]+)$ index.php?c=$1&a=$2&id=$3 [L]
RewriteRule ^([a-z0-9-]+)/([a-zA-Z0-9-]+)$ index.php?c=$1&a=$2 [L]
RewriteRule ^([a-z0-9-]+)$ index.php?c=$1 [L]

When I add the .htaccess to the remote server, only the homepage http://pagina.com recognizes me. When I try to enter an intern this one throws me the error 404 and does not recognize the page. Thank you very much.

    
asked by Carlos Cespedes 28.12.2018 в 17:08
source

0 answers