Questions tagged as '.htaccess'

1
answer

Enable GZIP compression in the .htaccess

I have enabled GZIP compression through the file .htaccess . Everything is fine when I do the tests with gtmetrix to the home page but when I do the tests to other options sections like this tells me that compression is not acti...
asked by 07.04.2016 / 23:06
4
answers

Is it advisable to use IDs in friendly URLs?

I would like to know if there are any rules that please the eyes of Google. The friendly URLs I use include the ID of what I want to "load" on the page. For example: http://www.unawebcualquiera.mx/bocadillos/13/bocadillo-con-jamon/ My doubt...
asked by 27.01.2018 / 21:40
1
answer

Appropriate use of .htaccess

I have a server with a web application developed in laravel, I am trying to configure the .htaccess file so that, if a URL is entered with index.php , it disappears. I am currently using these lines: RewriteCond %{THE_REQUEST} ^.*/ind...
asked by 29.06.2017 / 18:15
1
answer

Redirect domain / subdomain to IP with port

I have a server where I host all my webs, it is a private server and I have a fixed IP address. The problem is that I have a single IP, port 80 goes to a server and 8082 to the server that we have to host the webs, the other is to other web t...
asked by 28.11.2016 / 09:32
2
answers

How to remove variables from a URL with htaccess

When accessing URLs such as the following: https://midominio.net/page/61/?variable_hola=1&saludos=5148B409XXXXX677AB547FB3209AA8C8 https://midominio.net/page/20/?variable_hola=1&saludos=5148B409CD818677XX547FB3209AAAC9...
asked by 12.03.2018 / 19:09
3
answers

force redirect if the .htaccess rule is met

On my website, I use languages in this way domain.com/es/ domain.com/br/ domain.com/en/ etc ... I want to know the form with "htaccess" to redirect the url forsozamente, if the user enters this way domain.com / force him to go to:...
asked by 28.06.2016 / 15:50
2
answers

Error in wordpress site due to expired SSL

I have a site whose SSL expired and both the page and the admin do not let me see the content.    The connection is not private       It is possible that attackers are trying to steal your information from globalwmexico.com (for example, pass...
asked by 29.03.2018 / 04:54
1
answer

Redirect all routes of a REST API to the index

Hello, I happen to be creating a PHP REST API and I do not want to use a framework  but I have the following problem I want to create a request by the GET method in which I send the ID of a product to look for it in the database. That is:...
asked by 27.03.2018 / 14:03
1
answer

Rewrite url with mod_rewrite and .htaccess

I have a URL on my website: https://www.miweb.com/componente/nombre/contratar I would like it to not show "name" because the company has changed, but that the URL continues to lead to the same place, because if the contract does not wo...
asked by 13.03.2018 / 09:31
1
answer

Friendly URLs, remove / replace parts of a .htaccess URL

I have this url to access a study on the web: http://miweb.com/index.php?option=com_component&view=estudio&factura=1&id=25977&token=8f8c54a3ce165332fd59f17 I want a URL similar to the following, redirect to the previous one...
asked by 12.03.2018 / 11:49