开发者

Rewrite rule to redirect

开发者 https://www.devze.com 2023-02-22 16:10 出处:网络
How to redirect any variable(string) to another http://domain2.com/ from http://domain1.com/ 开发者_如何学JAVAFirst when user enter domain1.com user can view this website domain1.com/

How to redirect any variable(string) to another http://domain2.com/ from http://domain1.com/

开发者_如何学JAVA

First when user enter domain1.com user can view this website domain1.com/ After loading domain1.com/ If user type in address bar "http://popcorn" "http://go"or user should redirect to domain2.com/.

What I want when user enter domain1.com & after loading, if user type variable(string) inluding "http://" he should redirect to domain2.com

How to write rewrite rule for the above example.


What you are trying to achieve is not possible.
A website has no access to what users are writing in the address bar.

the only thing you can do is redirect http://www.domain1.com/popcorn to http://www.domain2.com.


Very Funny... :D

But still i can try to atleast make you happy... :) But this trick only helpful in mozilla...

in address bar type: about:config Be careful in modifying any record into it...

go to browser.search.defaulturl or defaultenginename and change it to your convenience

0

精彩评论

暂无评论...
验证码 换一张
取 消