W
W
whiteleaf2014-05-19 18:39:36
PHP
whiteleaf, 2014-05-19 18:39:36

Why is Redirect 301 not working?

Can you please tell me how to correctly write Redirect 301 in Apache .htaccess file?
I tried to do like this:
Redirect 301 ^index\.php$ localhost/site/new.php.
It doesn't work in this format, or I wrote it wrong.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Solovyov, 2014-05-19
@whiteleaf

try like this -

Redirect 301 /index.php http://localhost/site/new.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question