Questions tagged as 'url'

1
answer

regex for url validation

I've done this regex to validate URL: const std::regex pattern( "(?:(ftp|http[s]?:[//])?)?([w]{3}[.])?" "(.*[.](com|php|net|org|br|dk|at|us|tv|info|uk|co.uk|biz|se)?)?" "(.*[.](aspx|htm|html|HTM|HTML|jhtm|jhtml|JHTM|JHTML|xhtm|xhtml|X...
asked by 27.12.2017 / 22:45
0
answers

How do I make a friendly url with PHP? [duplicate]

I'd like to use this to mask the data contained in the url. something like:    localhost / webservice / redes.php? parameter = 1 per   localhost / webservice / networks / consult / How do I do this?     
asked by 26.01.2018 / 13:25
0
answers

Hide the .html extension of the files in the url using .htaccess

I created some pages .html and put online. In the browser file extensions are visible. However I want to hide them to make urls more "friendly". For example: instead of www.meusite.com/contato.html I want only www.meusite.com...
asked by 27.12.2017 / 17:10
3
answers

What are friendly URLs?

What are friendly URLs? What is your purpose? When is it recommended to use friendly URLs instead of regular URLs? Is it related to performance?
asked by 13.05.2016 / 15:20
0
answers

IIS 10 - Redirect HTTPS to HTTP request causing error MIXED CONTENT

I have a website in iis with HTTPS open, however, I need to redirect a specific request to http. Thisworks,however,thebrowserreturnsanerrorwhenissredirectstherequesttohttp.Following:MixedContent:Thepageat' link ' was loaded over HTTPS, bu...
asked by 09.11.2017 / 13:37
2
answers

Validation in operations Edit and delete by ID in the url

I tested taking the id and passing via url, normally performs the operation, as long as it exists, otherwise the error as expected. EX: link link How can I address this issue? See a form of validation, so if the id parameter is p...
asked by 01.10.2017 / 12:32
1
answer

APP_URL of .env register entire URL (beyond the domain) of the application

I have a server with a domain where there are several applications Laravel, for example, the path of the application1 looks like this: link p> The problem is that when I push APP_URL = link app_url only generates routes with the domain, f...
asked by 20.09.2017 / 19:07
1
answer

How to change the URL of site.com.br/index.php to site.com.br/ through .htaccess?

I have the URL with the following pattern:    https://dominio.com.br/index.php I tried changing from index.php to anything like this:    https://dominio.com.br/ With the following rule: RewriteEngine On RewriteCond...
asked by 18.10.2017 / 19:04
1
answer

D3.js include external image on the third button

This is an excerpt from an index.html of D3.js I have done, my idea is to include an external image and make it appear by clicking the 'btn3' button. In button 1 and 2 I have two graphs that work normally, the problem is to make button 3 display...
asked by 17.10.2017 / 22:38
0
answers

How do I put a question in a htaccess friendly url in the place I want?

I'm using this code: RewriteRule ^editar/candidato=([0-9]+)&admin=([0-9]+)/?$ http://localhost/MeuSite/candidatoeditar.php?candidato=$1&id=$2 [QSA,NC,L] But I would like the link to look like this: ^editar?candidato=([0-9]+)&a...
asked by 03.08.2017 / 23:15