Answer the question
In order to leave comments, you need to log in
How to fix .htaccess (access denied) problem?
Hello, I'm trying to follow the link and remove the .php extension from the browser line. I do it through .htaccess, here is the code:
# Запускаем движок замены
RewriteEngine on
# Если запрашиваемый объект не папка
RewriteCond %{REQUEST_FILENAME} !-d
# если запрашиваемый объект с дописанным расширением php - файл
RewriteCond %{REQUEST_FILENAME}\.php -f
# делаем замену с дописыванием .php
RewriteRule ^(.*)$ $1.php
<a href="pages/signup">Регистрация</a>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question