Universal link must be root domain? - ios-universal-links

Universal link must be configured as root domain in Xcode Associated Domains?
I searched for a long time, and read the whole apple document, but i can not find the obvious answer or definition about whether we must config the Associcated Domains as root domains, eg. applinks:apple.com, applinks:www.apple.com or we can config it as: applinks:www.apple.com/path/to/some/site ?

You can't find an 'obvious' answer to that question, because simply needing to ask it indicates you misunderstood the document you were reading (or didn't in fact read the whole thing) 😉.
The applinks: entries must be root domains. All that does is inform iOS that when your app is installed, it should go check that root domain for an apple-app-site-association file. If one is found, that contains the mapping information for URLs (such as /path/to/some/site).
Here is a full set up guide: https://blog.branch.io/how-to-setup-universal-links-to-deep-link-on-apple-ios-9/

Related

How do you use a website URL with no obvious extension

I am looking for any reference material for me to read up on, relating to what enables the following scenario where a website has a unique identifer appended to their domain name.
When you go to Facebook and view your profile, the URL in the address bar is something lile;
https://www.facebook.com/your_user_name.number
There is no obvious file extension, nor is the 'your_user_name.number' being passed as querystring value. I do know that I could create a folder on the web directory which is this name, and then you can direct to that folder and it will autoload the default or index files based on your web server settings. But i am not sure this is happening in this case, as then Facebook would have to create 2 billion + folders?
Browsing to your Photos on Facebook, it the url then looks like;
https://www.facebook.com/your_user_name.number/photos
I am keen to understand what this type of technical configuration is called. Happy to read up on it myself and learn about it, but I don't even know what it's called to search and read up on.
Any pointers?
What you are looking for is URL rewrite.
https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module
You can basically do whatever you want! No need for extensions or folders at all if you don’t want them anywhere.

Error establishing database connection if i dont type https before domain

Site worked properly till recently when i got EEDBC error. Accidentaly realised that i can get to ebsite only if I type https before domain. What could be the problem? (And solution, of course)
You need to pay close attention to whether the URLs that you found have www. included. If your database includes a URL without it or vice versa, then this needs to be changed to match your database.
Check the wp-config.php file in your directory and change it. Without seeing the config file I could not answer the exact answer.
The prolem was, that my hosting provider moved directory from subdirectory to root folder on their own without notice

Alfresco - Rename the CIFS share name

At the moment if I want to connect to the CIFS share advertised by Alfresco (CE) the path looks something like smb://test-machine/alfresco/ when connecting from a mac. Is it possible to rename the share to anything else or place it on the root so that I could either get:
smb://test-machine/custom-name/
or just as the root
smb://test-machine/
I have been searching through the various documents and forums but not much info on if this is possible or if the share name is hard coded.
Thanks
Yes and no.
Yes - It is possible to change the context route from /alfresco to a custom name.
No - you cannot install it from server route /.
From the documentation;
There are a number of updates that you need to make if you want to
deploy Alfresco to a context path that is not /alfresco. You cannot
install Alfresco at the server root (/). In other words, the context
path cannot be the server root.
The steps to change the context route can be found here;
http://docs.alfresco.com/5.0/tasks/deploy-contextpath.html

Configuring "Web application URL" for team use

So, I'm trying to take advantage of 'Path Variables' (or Linked Resources), in my teams FlashBuilder4 project properties, so that its not such a bear to get a new project out of SVN, and up and running. I'm all done with that, except that I can't figure out what I'm supposed to do for the "Web application URL" .
It doesn't allow me to create a "Path Variable" for http:// type items, only files and folders.
Short of saying that all developers need to configure their servers exactly thus, how can I configure this property so that individual team-members settings don't interfere with other team-members ?
What we do is create Linked Resources to point to a debug directory e.g. project/r11.1/dist in the main project. Everyone has r11.1/dist directory structure within their project. Each person has a local Apache server running, and each person sets up a local Alias in the server for r11.1 that points to whatever location the dist files are stored C:/.../r11.1/.
The SVN only contains the Apache Linked Resource name plus the common folder structure i.e. DISTRIBUTION/r11.1/dist along with the server name i.e. http://localhost.whatever.com/ + {DISTRIBUTION}/r11.1/dist
Does this make any sense in terms of what your after?
Here's what I did to solve the problem. I hate it, but it gets me to where I need to go.
I assigned the "Web Application URL" to the value "https://HOSTS.DASHBOARD.DEV/foo/bar/blah/..."
Then, each of the developers needed, in addition, to create an entry in their HOSTS file, to resolve 'HOSTS.DASHBOARD.DEV' to the proper ip address.
This works (so far), even though I'm less than satisfied with it.

Can I access crossdomain files outside the originally requested domain?

Flash Player 10 specifies:
"Redirects to policy files outside the originally requested domain will
continue to cause policy files to be
ignored by Flash Player."
Is there a way to access policy files outside the domain?
I don't fully understand your question.
A policy file on a given domain (no matter the exact path) can only give access on that domain and subdomains.
Using Security.loadPolicyFile, you can load it from an arbitrary URL on that domain, but you cannot grant access to domain B with a policy file from domain A.
Edit:
If you could give access to B from A, being the owner of A, this whole policy thing would be pointless. You would serve the swf from A and serve a policy file that grants access to B from A, so why have policy files anyway?
I don't know about flash, but you can load any javascript you want by dynamically adding script tags to the page, or even including them into your page at load time. Just add append a tag to the end of head with the script URL you need to load. But you should do this only if you trust the script.
You can load policy files from anywhere using:
Security.loadPolicyFile(url:String)

Resources