Questions tagged as 'url'

2
answers

How to modify specific parts inside an html file?

I'm loading an html file and would like to modify urls inside it so that the system recognizes the actual path of every file the html is trying to access, so I have several different urls: <link rel="stylesheet" href="assets/vendor/font-awe...
asked by 24.03.2017 / 14:22
0
answers

How to create a URL Protocol [closed]

Well, I'd like to know how I can create a "Scheme", a Protocol such as HTTP, HTTPS, FTP. I would like to know how I can make this Protocol to open a program, like Torrent, with the Magnet Protocol. In addition, I wanted to know if possible to...
asked by 19.01.2016 / 22:03
1
answer

How to use different URLs and get information from them [duplicate]

I have a database with the following ID Nome 1 A 2 B 3 C I would like that when accessing www.example.com/perfil.php take all the information and print on the screen, however when accessing www.example.com/2/B or www.e...
asked by 27.05.2015 / 14:43
1
answer

.htaccess - rewriting non-friendly URL

When I make the request: http://localhost/project/mycontroller/ URL rewrites to http://localhost/project/mycontroller/?l=mycontroller That is, in addition to /mycontroller the .htaccess (I suppose) is concatenating in the url th...
asked by 04.08.2014 / 15:00
3
answers

Validate URL with ER

I have a validation class and I need a method to validate URL's, but the filter_var function has failures to validate it. An example of 3 URL's: The URL is complete returns TRUE #1 'http://www.youtube.com' | string(22) "....
asked by 26.08.2014 / 10:40
4
answers

Check if parameter exists in URL javascript

I have a URL that may or may not contain parameters in it. Ex: www.site.com.br/?id=1 or www.site.com.br . I need to check if there is any parameter in this URL and with that I can add one more at the end. For example: If URL...
asked by 10.09.2018 / 18:25
1
answer

Is a URL important?

Most languages have methods to encode and decode a URL, such as C # System.Net.WebUtility.UrlEncode(string value) and System.Net.WebUtility.UrlDecode(string encodedValue) . I realized that when I use some language methods for Ur...
asked by 23.01.2018 / 06:51
3
answers

Execute Javascript in URL (plugins ..)

How do I run JavaScript snippets in the address bar, I tried in Firefox something like: javascript: alert("lol") , but it seems to be an old technique that does not work (at least not in Firefox). The idea is to have a bookmark in the b...
asked by 17.11.2015 / 15:54
2
answers

Convert url from a string to hyperlink

It works for several links but if I do the same 2x link in the string does not work how? function MontarLink($texto) { if (!is_string ($texto)) return $texto; $er = "/(https:\/\/(www\.|.*?\/)?|http:\/\/(www\.|.*?\/)?|www...
asked by 19.08.2014 / 20:57
1
answer

404 Django Python Error

This is the error I'm having: AsyoucanseeinthelistofURLs,thenumber8isequaltothe"current url" given below. My url list: from django.conf.urls import include, url from django.contrib import admin from principal.views import IndexView, Log...
asked by 09.11.2016 / 16:54