.htacess does not work on the server

Asked

Viewed 37 times

1

Hello, when I test on my pc, it works perfectly, but when I put it on the server it stops working.

inserir a descrição da imagem aqui

.htacess

RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d

RewriteRule ^(.*)$ index.php?url=$1 

Config

AllowOverride All

Note: when I give include on some page on the index it loads normally.

  • Did you ever install it? Is your environment Linux or Windows? If it’s Linux from a read in this tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite, if it’s Windows I recommend you to use tools like Xamp or Wamp, I think in IIS only url_rewrite works.

  • rewrite_module is actually enabled?

No answers

Browser other questions tagged

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