then i added these in etc/apache2/sites-available/000-default.conf file:
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
then i created a .htaccess file in my project and put these:
RewriteEngine on
RewriteRule ^(index|contact|singUp)$ $1.php [NC,L]
but if i enter project/index url i will get a 404 error. how can i fix this?
What are you trying to achieve?
Обсуждают сегодня