S
S
Sam Stay2014-07-26 18:08:27
htaccess
Sam Stay, 2014-07-26 18:08:27

How to correctly write .htaccess rules in order to change the URL?

Good day, Dear!
There was some problem. You need to change the URL of the admin panel.
It is necessary that when requesting to: domain.com/admin, the files should be opened from: domain.com/webasyst but without a readerect. That is, so that it remains in the address bar of the browser: domain.com/admin
Tell me , please.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vdem, 2014-07-26
@vdem

Something like that:
RewriteRule /admin/(.*) /webasyst/$1 [L]

I
Ivan, 2014-07-26
@0neS

Try:
RewriteRule /webasyst/(.*) /admin/$1 [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question