redirecting to subdomains without getting unusual traffic in apache2 - apache2

i tried to redirect my site like
https://something.com/num1 into https://num1.something.com/
using something like this
<If "%{HTTP_HOST} == 'something.com'"> Redirect "/home"
Redirect "/num1" "https://num1.something.com/"
</If>
but due to that, i think my recaptcha detects my redirection into an unusual traffic.is there a way to redirect it without being detected as unusual traffic?

it seems that it happened due to ssl change to wildcard ssl. so it appears that i have to change the sitekey

Related

Oauth redirection URL for google play auth

I'm testing the Oauth connection in my local host. I need to specific redirection URL so I gave the following URL there.
http://localhost:3001/succesful/
On successful authentication, it gets redirected and appends with code and scope like this.
http://localhost:3001/succesful/?code=asasasa&scope=asasas
But for some reason, my URL is not loading. I have added route like this.
<ProtectedRoute path="/succesful/:code?" component={Connection}/>
I'm new to programming, not able to understand what I'm doing wrong
How I fixed it: I changed every URL in developer console to https:// even though I don't have it setup

Google Load Balancer simple url redirect

I have a simple request.
I need to these routes
/v1/devices/*
and redirect them to
/v1/*
I have set this up
But it's looking like it's not hitting these routes at all.
We have setup a new API endpoint for the devices to connect to, we can only change the hostname on the devices, so we need to redirect those routes to the new routes. I would prefer not to have to do that in code if I don't have to.
What am I doing wrong?
So thanks to #guillaume it was an easy fix.
Updating my Path prefix rewrite from /v1/* to /v1/ this has allowed the routes to come in the correct path as expected.

Google app engine redirect to an absolut uri

I am using google app engine with python and webapp2, and i can't find the way just to redirect to an external web site using an absolute uri.
For example:
class Landing(BaseHandler):
def get(self):
self.render("landing.html")
def post(self):
name=self.request.get("name")
if name == "yes"
self.redirect("/")
else:
self.redirect("http://example.com") **This is the problem as I want to redirect to an absolute url.
The self.redirect always redirects to a relative url. How could I do a redirection to an absolute url? I think it has to be easy but I can't find the way.
Works fine for me and does not only redirect to a relative url. Please check your config of your host, browser and caching.
GAE just redirected me to example.com using it on my dev and production server
Take care though that example.com redirects to http://www.iana.org/domains/example/
That might be confusing you.
Try using eg self.redirect("http://www.facebook.com"). That will redirect you to facebook. Simple.
Also.. I think I may have been bitten by the fact that there is no return in your code - so even after you've called the self.redirect(...) bit, if you write anything else to self, that may mess up your redirect.

CakePHP 2.0 Problems with loginRedirect - https removed

I have the following problem.
A reverse proxy is used to establish a secure (https) connection to a server in an internal network. So the address is https://<url>. If I am now on my login page (https://<url>/users/login) and hit "submit" the https is removed (by the loginRedirect) and it's trying to connect to the url via http. Of course that is running into an timeout but the users is logged in. If the user is then accessing a page directly it's working.
Once the users is on the page he can do everything that is necessary and the other links are showing up with https as expected.
How can I avoid that the loginRedirect is removing the https? One solution is to use simply $this->redirect('<url>'); instead of $this->redirect($this->Auth->redirect()); but then I would lose the handling of direct links if somebody is not logged in and tries to access a specific part of the page that requires authentication.
I just got help in the CakePHP lighthouse forum and I would like to share the solution with you. It was actually pretty easy. In a reverse proxy scenario you have to edit the bootstrap.php (in the config folder) and add the following base URL:
define('FULL_BASE_URL','https://your base url');

When redirecting with 301 landing page gives error

I am redirecting a domain to another website that I don't have access to. For example, when somebody enters www.mydomain.com in the url, I want them redirected to www.example.com/test.aspx?q=10.
If I just type "http://www.example.com/test.aspx?q=10" in the address bar, I get taken there as expected. When I redirect to that exact address, I get an error. The website loads, but it is an error page created by the website.
My question is, is this likely something on the website that I don't have control of, such as some code like "if http.request == 301 {give error}".
Note, this also happens on a 303 request.
Here is how I am redirecting:
<VirtualHost 1.1.1.1:80>
ServerName www.mydomain.com
Redirect 301 / http://www.example.com/test.aspx?q=10
</VirtualHost>
I suspect your assumption of the third-party website blocking it is correct. It could be something like it's checking the referring page using HTTP_REFERER?
Maybe you could try removing the HTTP_REFERER
Can you elaborate what you mean when you say you get an error?

Resources