Answer the question
In order to leave comments, you need to log in
How to make this link work?
I have a miracle code.
For starters:
.htaccess:
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}/lk/$1 -f
RewriteRule ^(.*)$ lk/$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
<li><a href="/lk.php" class="lk">ЛИЧНЫЙ КАБИНЕТ</a></li>
Answer the question
In order to leave comments, you need to log in
Haven't tried it, but still.
If we talk about your method, I would try to do it in the "collective farm" way.
So, xref throws you to a php file, which is located in the same folder as lk.php, and this file should redirect you to your lk.php, but without the php extension.
Try)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question