Problem using Friendly Url

Asked

Viewed 133 times

1

Where I’m going wrong on this . htaccess ?

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

the site I developed works normally on the localhost, but now that I have climbed to the server (Cpanel Hostgator), the pages do not open properly, see the example.

Exemplo 1

if I click the link, the URL redirects correctly to novosite.glowseguros.com.br/home/produtos/seguro-auto#produto but the page does not change, continues on Home.

now if I put . php like I did in the image below the page is displayed correctly. novosite.glowseguros.com.br/home/produtos.php/seguro-auto#produto

Exemplo 2

1 answer

2


The server apache had the Multiviews option disabled.

It was only by forcing the option through . htaccess that the problem was solved. I added the following line in the file

Options +MultiViews

Browser other questions tagged

You are not signed in. Login or sign up in order to post.