A
A
Alex552017-02-21 17:11:37
htaccess
Alex55, 2017-02-21 17:11:37

.htaccess: how to change url correctly?

Hello. I know the topic is hackneyed, but, I confess, I searched Google for the answer to my question, I kind of found it, but it still doesn’t work in the way I need ... I also admit that I really don’t understand .htaccess, so I just copy-paste. Actually, the question is this.
We have the following structure: http://site.ru/article/name/index.php
How to make the URL be the following: http://site.ru/name/, and so that when you go to this address, the content that is located here: http://site.ru/article/name/index.php.
All I can do is http://site.ru/article/name/index.phptruncate the URL string when switching to , but it is not going to work articlewithout specifying index.phpor when switching to. Thanks in advance. http://site.ru/name/

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question