Questions tagged as 'htaccess'

0
answers

Redirects with Htaccess

I would like to create an htaccess configuration that is more or less with the following rules. When you access link , go to a specific folder and when you access http: //*.mysite.com/ direct to another folder on my server. If I hide a su...
asked by 08.10.2017 / 02:16
1
answer

Conversion of "query" an HTML form using .htaccess

I need to do a "query" conversion of an HTML form that should pass information to do a search in the database. I think it could be something like a kind of "friendly url", the simplest. Basically it is, with this string passed by the form "?...
asked by 12.10.2017 / 21:48
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
2
answers

htaccess rule to add https

I'm trying to create a rule inside my htaccess so it's added to the HTTPS url. It turns out that this should happen only for a specific domain, how to handle this in a rewritecond http_host? example: RewriteCond %{HTTP_HOST} palavraChave Re...
asked by 17.10.2017 / 19:19
1
answer

.htaccess file settings

Hello, my friends, I am a beginner here on the Stack Overflow and beginner in programming flight of 04 grandchildren 54 years. What configuration to do in .htaccess to protect directories, folders, files and DB from browser access. Thankful.   ...
asked by 24.10.2017 / 00:09
0
answers

What would it be and how to use NameVirtualHost *: 80?

I'm installing a new pre-configured website, but in order to install it, you need to create a configuration file as follows: Thispartofthedocumentationisvaguetome,andIdidnotunderstandwhatthisconfigurationfilewouldbe,Ithencreatedan.htaccessfi...
asked by 19.09.2017 / 19:50
0
answers

Simultaneous access

Would there be any way to limit concurrent access without using the database? Is there any way to do it using .htaccess? Because I'm trying to limit access to a file that does not come in the PHP extension.     
asked by 02.09.2017 / 22:49
1
answer

Redirect with .htaccess if url contains string

I'm working on an application using Angular4 and PHP , so that the URL of the Angle works, I need to use a certain setting in .htaccess to point to index.html , like this: <IfModule mod_rewrite.c> RewriteEng...
asked by 01.09.2017 / 21:41
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
1
answer

Problem with regular expression in .htaccess

I have the following URL: http://< site >/restrito/usuarios/pagina/ This page is responsible for displaying a table containing the users registered in the system, can receive numbers as a variable to indicate the page of the table, s...
asked by 22.08.2017 / 00:09