-
The url in the browser shows this for example
/page/persons-home
but this is not found, but when i change the / to .php?i= like in
/pagephp?i=persons-home
Then it works in the browser. Rewrite is installed. When i make the changes to the rewrite rules, the errors differ.
https://inspireants.com/una/page/persons-home Does not work
https://inspireants.com/una/page.php?i=persons-home This works
-
Hello, Check in your Vhost
Replace AllowOverride None
by
AllowOverride All
I just check this exatly causes the situation you describe above.
Do not forget to restart apache afterwards. -
Up: If you do not have this directive in your Vhost, you can also change it more general way instead of doing it for a single site
In case you are on Ubuntu, edit the file /etc/apache2/apache2.conf (here we have an example of /var/www):
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
and change it to;
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
then,
sudo service apache2 restart
-