T
T
tuxx2014-10-31 14:16:27
Apache HTTP Server
tuxx, 2014-10-31 14:16:27

Wrong redirect (additional question)?

I needed to redirect some pages from site1 to site2 and sit1/index/ to site2. I write in htaccess redirect

Redirect 301 /dir1/ http://site2.ru/dir2/dir3/dir1/

But as a result I get a redirect to site2.ru/dir2/dir3/dir1/?dir1 and 404 for all this.
On the code
Redirect 301 /index/ http://site2.ru/dir2/dir3/
I get site2.ru/dir2/dir3/index/?index although it should be site2.ru/dir2/dir3
On the code
Redirect 301 /bla-bla/ http://site2.ru/dir2/dir3/bla-bla/

I get site2.ru/dir2/dir3/bla-bla/?bla-bla
The $_REQUEST array should contain 2 parameters in total
[param1] => dir3,
[param2] => dir1

but actually contains
[bla-bla/] => ,
[param1] => dir3,
[param2] => dir1

Works only
Redirect 301 / http://site2.ru/dir2/dir3/

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question