A
A
Acvoloe2015-09-18 05:52:55
URL Handling
Acvoloe, 2015-09-18 05:52:55

How to redirect from index?

I wanted to make a redirect
. For example,
there is a test.ru domain and a mail.php file.
Make a redirect to get test.ru/mail

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Binarix, 2015-09-18
@Acvoloe

You need to look towards the CNC. If Apache is installed, then you can do this:
add .htaccess to the root with the content

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([a-z0-9\-\_]+)/? mail.php [L,QSA]

then the address your-site/mail/ will be available

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question