Remove last child page from URI

How can one dynamically find and remove the last child of a website path URI? Code: $uri = $_SERVER["REQUEST_URI"]; Result: Desired result: Many thanks in advance! ...
more »

2017-09-28 23:09 (3) Answers

Using "///" inside a URL in a NGINX/Django project

I have a Django project running with NGINX and I would like to route the following URL to a view: …that is, with the 3 slashes And it should be a different view than: The following ...
more »

2017-08-30 00:08 (0) Answers

URISyntaxException on Mac but not Windows

I've been having this issue when I use URL.toString() on Windows I get an exception saying: Illegal char <:> at index 4: file:\C:_workspace... And whenever I use URL.toUri() I'm getting: URISyntaxException: Illegal character in path at...
more »

2017-08-18 10:08 (0) Answers

URI url with "&" not coping complete

Based on this post, I've managed to get this to work but whenever I pass an URL with an "&" on it, the link doesn't came all the way complete to IE. For example:
more »

2017-08-10 23:08 (0) Answers

javax UriBuilder doesn't escape '}' correctly is not escaping } correctly: import; public void test() { final UriBuilder builder = UriBuilder.fromUri("http://host"); builder.path("dir}one");; } Will...
more »

2017-07-17 10:07 (1) Answers

REST get user by id and nickname

What is the best way to create @RequestMapping when i need to find user by id (e.g. "") and by nickname ("")? I have problem with same pattern and Spring mapping can define "id1" as a nickname (but it is impossible because the...
more »

2017-07-13 22:07 (1) Answers

What's URI Cache in IIS?

I searched a lot to understand what's URI cache in IIS and how it works but couldn't find any thing! In this blog post, we have a 'file cache' and a 'URI cache'. Can you make their differences clear? I understand file cache, but not URI cache. Th...
more »

2017-07-13 16:07 (0) Answers

Does SSL secure the part before @ in an uri?

For instance Google has a feature where you can just curl the contents of https://$ACCOUNT:$ To get an Atom XML feed of your emails. This seems highly unsafe obviously provided that this entire URI is s...
more »

2017-07-12 07:07 (1) Answers

Example of URL that's not a URN

URLs and URNs are subsets of URIs. Some URNs are also URLs and some URNs are not URLs. There are many answers on Stack Overflow that explain the concepts quite nicely. You often find a Venn diagram where URNs and URLs are overlapping sets, implying ...
more »

2017-06-30 11:06 (2) Answers

Open via href a specific broswer

I have in an email a href and need to always open that link with google chrome independant of what the default browser is. "href=googlechrome://" is not working. Any suggestions ? Best Michael ...
more »

2017-05-25 20:05 (1) Answers

Comparing url model and the real one

I have this url type: /segment1/segment2 I need to focus on segment2 that contains the id or the code of the item and some other slug or date etc infos. Example: /segment1/123-title-of-the-item or /segment1/title-of-the-item-123 or /segment1/DLCK3...
more »

2017-05-21 14:05 (1) Answers

Accessing file protocol HTML

I have a document path saved in the db as follows Y:\FolderA\SubFolderAA\SubFolderAAA\example.pdf The path Y: is a windows shared folder drive letter. The actual file is in a server folder with path\ERP Files. So in "real sense" the fil...
more »

2017-04-24 19:04 (0) Answers

codeigniter redirecting to a url

I have a website with a url like so (which works fine) But there always have to be a language and a controller in the url otherwise the page doesn't load or there is no language (no text). Is it possible that whe...
more »

2017-04-20 02:04 (1) Answers

I can't find what cause error with this code I create ApiUrlManager class for manage the Api Url for api address. but when I lunch the app it...
more »

2017-04-11 17:04 (0) Answers

Listing parent directory of FTP home path

I have to list FTP directory ../Catalogue/. It was working in .NET 4.0, but not is not working in .NET 4.5.2 anymore. As I can see, in .NET 4.5.2 that the URI is getting changed. The ../ is removed. Has anyone any idea, how to keep ../ into my req...
more »

2017-04-11 10:04 (1) Answers