N
N
Nikolai Chuprik2018-02-16 14:32:23
htaccess
Nikolai Chuprik, 2018-02-16 14:32:23

How to configure .htaccess for links like my-site.ru/eVy4oi to be equivalent to my-site.ru/index.html/eVy4oi?

How to configure .htaccess for links like my-site.ru/eVy4oi to be equivalent to my-site.ru/index.html/eVy4oi or my-site.ru/index.html?mykey=eVy4oi ?
In short, to always open index.html, and I will deal with URIs further in PHP.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay Chuprik, 2018-02-16
@choupa

I studied the issue myself.

RewriteEngine On
RewriteBase /
RewriteRule ^([0-9A-z]{6})$ index.html?mykey=$1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question