This question already has answers here:
WampServer & XAMPPserver automatically redirecting http to https (I don't want this)
(2 answers)
Closed 4 years ago.
I have a project virtually hosted in my computer(OS-Ubuntu , LAMP Stack).
The URL is I use to run my web app is http://ecommerce.dev . And It works fine in Firefox, but when I enter same URL in Google Chrome. I get an error saying This site can’t provide a secure connection ecommerce.dev sent an invalid response.
ERR_SSL_PROTOCOL_ERROR
And the URL in the browser automatically changes to https://ecommerce.dev.
So I you guys to solve this problem.
This is because now google recognizes .dev as a Tld. Just change the url to http://ecommerce.test or something like that. You can use anything of your choice that doesn't resemble an existing Tld.
Related
This question already has answers here:
Facebook OAuth "The domain of this URL isn't included in the app's domain"
(31 answers)
Closed 4 years ago.
I recently stumbled upon problem when trying to login via facebook app login. First of all, I've already read every possible thread about problems with fb login, followed every possible tutorial but with no effect. Everything worked perfect when it was first done but I've just found out it's not working. I get this:
I get the message - domain is not included in the app domain field. But in fact it is as you can see below:
Help me Stack Overflow, you are my only hope.
Simply updating to 5.6.2 solves the problem.
This question already has answers here:
How to open a native iOS app from a web app
(5 answers)
Closed 7 years ago.
I was trying to create some web app using Framework 7. Everything's fine, but i'd like to be able to call an app from the Home Screen (for example, the Store or the News app).
I know that some APIs are published by Apple Inc, but I can't find a way to call an app from my PHP code.
The Web app is created to run in Safari.
I tried something like:
<script type="text/javascript" charset="utf-8">
window.location = "myapp://iMessage";
</script>
But it doesn't seem to be able to launch the app.
Before iOS 9
In order to open another app in iOS you need to know what schemes it supports. Not all apps use them, so not every app is openable this way. An example scheme that opens up AppStore looks like this :
itms://itunes.apple.com/us/app/apple-store/id375380948?mt=8
This will open AppStore on "Apple Store" apps screen. You can test this also by replacing itms with https and pasting in your browser. The itms part is the scheme, and the rest are the parameters passed to the app.
Since iOS9
Apps can register to handle "generic" URLS, so a URL like
http://9gag.com/gag/a1MXxR2 will be opened in 9GAG app (unless the user doesn't agree to it - he will be asked the first time he opens such a link in Safari, then it will be opened in Safari).
Note that not all apps support it yet, and there is no way (apart from asking the creators) to know if they ever will.
So to answer your question : there is no generic way to open a "random" app installed on someones phone. Especially not apps which don't support such opening via URLs (no matter whether with a custom scheme, or http(s)).
Some of the popular apps (Facebook, Twitter, Chrome, ...) publish their schemes and you can implement them, not all will do so.
Note: this all applies to non-jailbroken phones.
There's not a general purpose way to open any app. Opening a specific app requires that:
that app has registered to respond to a specific URL scheme (e.g. instagram://)
you know what the URL scheme is. Sometimes an app's URL scheme isn't publicly available.
I think "myapp://" scheme you're using was someone's example but doesn't apply to all apps.
This question already has answers here:
Origin is not allowed by Access-Control-Allow-Origin
(18 answers)
Closed 7 years ago.
I am developing a mobile application that uses js on the frontend and connects to a PHP backend which runs script against MongoDB database to return json data.Now everything was working fine as I tested the whole backend using localhost but now I want to upload the PHP files to some server so that I can test the whole thing using the actual mobile app.
So here's what I have done so far:-
I made my MongoDB database on MongoLab (they have a starter free plan) and I also uploaded my PHP files to google app engine (again for free). But now when I try to call a file using say Postman in google chrome, it shows Access-Allow-Control-Origin error, http://localhost is not allowed. I tried to google to find a solution to this but it didn't prove to be helpful as the error still persists.
So I switched to Amazon aws, fired up an ec2 instance, installed apache and PHP and uploaded my PHP files there, and I got the same Access-Allow-Control-Origin error.
So I guess my real question is can someone just walk me through the process of how I can upload my PHP files and have them connect to MongoDb database and then call them from localhost or from mobile app and have the result given to me.
P.S. - Sorry for such a long post but I just wanted to explain everything.
Add
header('Access-Control-Allow-Origin: http://localhost');
to the top of any page which has the problem.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Facebook API error 191
I have a Facebook page app running a competition entry that posts to the users wall upon entry.
I have it set up and working on my development server but when I try to host it from my dedicated server I get the error:
API Error Code: 191 API Error Description: The specified URL is not
owned by the application Error Message: Invalid redirect_uri: Given
URL is not permitted by the application configuration.
This suggests I haven't used the correct URL in my app settings, but I have checked and doubled checked and everything is okay.
It only seems to be a problem when hosted on my dedicated server as I have tested the app from servers and it works fine. For this project unfortunately it HAS to be hosted from my dedicated server.
Does anyone know a solution to this?
Each Facebook application requires it's own unique domain name. One domain name for one Facebook application.
Create new application for you production domain name.
This question already has an answer here:
Redirect all requests to subdirectory except a few ip addresses
(1 answer)
Closed 8 years ago.
I need to put a important client's website into maintenance mode. I want redirect (or serve a static html) all vistors except 2 IPs so we can continue to access the website while we work on it.
Is there a way to do this with a .htaccess file?
I known I could easily do this with php and headers but I will be working with the PHP code a lot, so many of times the users will get a PHP error before getting redirect.
Also, Google bot visits this website very often. Is there a way to tell bots that the website is temporary down so they don't index the "Please come back later" massage? (a header code maybe?)
Thanks
Here is a great article from SEOmoz
http://www.seomoz.org/blog/how-to-handle-downtime-during-site-maintenance
It is a nice step by step explanation and I think it is just what you are looking for. It tackles the SEO side of things and also explains how to use your htaccess to serve the proper HTTP status code.
# Redirect old file path to new file path
Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html