Edit URL, keep domain part, strip others

I've got a File full of URLs. Each line has one URL. I just want to keep the protocol and domain part. Example: https://example0.com/example.php?id=example0 https://example1.com/example.php?id=example1 https://example2.com/example.php?id=example2...
more »

2017-01-11 21:01 (3) Answers

add url to wordpress with php

Here is my portfolio http://portfolio1426.zzz.com.ua/ . In the section 'portfolio' I add my one site. If you press a button 'look at it' you can see a title and description of project. Also there is a link 'Site here'. If you press in it, the link ...
more »

2017-01-11 17:01 (1) Answers

invalid request(unexpected EOF) - laravel

Hi I'm trying to load in parsely.css with the following laravel code. The parsley file is in the public folder of the application and when i render the page i get an error message - invalid request(unexpected EOF). @section('stylesheets') {!! Html:...
more »

2017-01-11 15:01 (2) Answers

How to redirect Tomcat traffic to backup server

I have two identical tomcat servers, One is Production (exampleprod.com) the other is DR(exampledr.com). I want to redirect any traffic from Production to DR when Something in Prod goes wrong. The problem I have is users access the sites like this e...
more »

2017-01-11 10:01 (0) Answers

Excel HYPERLINK with more than 256 chars

In my workbook I want to create an URL by stitching toghether various parts defined in some cells with some standard content. The formula I am using is basically =HYPERLINK(CONCANTENATE("standard text1",cell,"standar text2",cell,"standard text3") I...
more »

2017-01-11 07:01 (0) Answers

Extracting queries from a URL

I'm trying to write a method that will extract the query parameters from a URL (php?id=2, admin?id=34&page=2, etc..). What I have so far will do just that unless the php part doesn't have a . for example it will work on https://example.com/subcat...
more »

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

Can't rewrite a folder with .htaccess

I have moved hoster lately, but I have made a slight change in the directory. I renamed a folder from "listing" to "vendors". I used this code below to prevent a 404 error. RewriteEngine On RewriteRule ^listing/(.*) vendors/$1 This didn't worked f...
more »

2017-01-10 15:01 (1) Answers

How to encode and shorten hash for url safety?

I use SHA-512 to hash a token, which results in a 128 character string. How can I encode it so that it is shorter but still URL safe (no need to escape like '+' or '&')? Hex and Base32 are both suboptimal, and Base64 is unsafe. I don't want to h...
more »

2017-01-10 15:01 (2) Answers

.htaccess to remove extention doesn't work

I have the following problem: I want to remove .php and .html extention from url of my website. The url is localhost/MySiteDir/MySitePage.php and I want to obtain localhost/MySiteDir/MySitePage. I am following this: https://alexcican.com/post/...
more »

2017-01-10 14:01 (2) Answers

How do I get the File Kind of a URL?

I was using this to get the file kind string from a given URL var umKindStr: Unmanaged<CFString>? = nil LSCopyKindStringForURL(url, &umKindStr) if let kindStr: CFString = umKindStr!.takeRetainedValue() { return kindStr as String ...
more »

2017-01-10 14:01 (0) Answers

How to add root url on kendo hyperlink

I have a Kendo grid which got a link which downloads the file and it works fine on my local machine. however,After my code is being published/deployed to the server it doesn't download the file When you click.but if i manually put the root from the b...
more »

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

Remove directory from URL

I want to remove a directory from my homepage link example.com/remove/ to example.com thing is, the index is located in the "remove" directory. I've tried: RewriteRule ^front /(.*)$ /$1 [L,R=301] But this produced an internal server error ...
more »

2017-01-10 03:01 (1) Answers

Read JSON values from URL via PHP

i have url with this simple JSON {"result":true,"data":[{"Position":"135"}]} I tried to read it with this: $json = file_get_contents('https://...link/here..'); $obj = json_decode($json); echo $obj->result[1]->data->Position; but it not w...
more »

2017-01-09 14:01 (1) Answers

C# get uri arguments

http://localhost/ReportServer/Reserved.ReportServer?/Report+Project1&rs:Command=ListChildren I would like get parts of url with report folder (Report Project1). I tried HttpContext.Current.Request.Url.Segments but this return array with this ite...
more »

2017-01-09 13:01 (2) Answers

URL changes/ encoded automatically

I am working on Link analysis and then i came to handle url of multiple languages example URL. https://www.exportworldwide.com/hi/company/galleon-systems/एनटीपी-जीपीएस-सर्वर To paste this url above i have to copy t...
more »

2017-01-09 11:01 (0) Answers