site.2.in/?ref=1"?" />
D
D
Danil Sysoev2015-03-30 15:58:42
Programming
Danil Sysoev, 2015-03-30 15:58:42

How to implement a redirect like: "site.1.in/?ref=1 -> site.2.in/?ref=1"?

Hello guys.
Please help in resolving the issue. Rummaged through the expanses of the Internet - did not find a sensible answer.
In general, I have a website - with a referral structure. And of course, the day came when everyone's favorite vktochkacom blacklisted the site.
Dug in the Internet. In addition to the redirect, I did not find anything smarter. Those VK support is still silent and I think it’s unlikely that they will answer anything sensible. But the question is different.
I registered a free site.ucoz.net domain and redirected it to site.in using

<script> document.location = «http://site.ru/»; content=0; target=»_blank»; </script>

The question is:
How to redirect from site.ucoz.net/?ref=login to site.in/?ref=login Thanks a lot in
advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Danil Sysoev, 2015-03-30
@YoungOldMan

Thank you very much. Problem solved. We insert the code into .htaccess (of course, we replace the links with our own). Thanks to all.
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} robots.txt$ [NC]
RewriteRule ^([^/]+) $1 [L]
RewriteCond %{HTTP_HOST} ^site\.com
RewriteRule ^(.*)$ site.org /$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.site\.com
RewriteRule ^(.*)$ site.org/$1 [R=301,L]

S
ShamblerR, 2015-03-30
@ShamblerR

you have a redirect with a get request, the get is not included in the url, but is passed only to a variable.
kak-iskat.ru/?q=301+redirect+get+parameter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question