A
A
Andrey Pogorelov2014-02-26 12:36:11
htaccess
Andrey Pogorelov, 2014-02-26 12:36:11

How to implement address duplication in htaccess?

There is a page along the path:
site.ru/page
It is necessary that it be available at several addresses, for example:
site.ru/site
site.ru/to
How to do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
akashtrih, 2014-02-26
@akashtrih

RewriteCond %{REQUEST_URI} ^/(site|to)$
RewriteRule .* /page [L]

A
Andrey Pogorelov, 2014-02-28
@Userhabr

Need not to redirect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question