Questions tagged as '.htaccess'

0
answers

.HTACCESS, problem when opening a page from a remote server

I am setting up a web page created with PHP with Modelo-Vista-Controlador to a remote server. On my local server ( XAMPP ) it works perfect, the URL of this is http://localhost/pagina and this is my code of .htacces...
asked by 28.12.2018 / 17:08
2
answers

Valid attempts .htacccess

I have a htaccess and htpasswd , when I enter the page it opens the alert to enter the username and password. Everything works OK. What validation should I do to limit the number of times a user can place the username and pas...
asked by 23.03.2016 / 13:57
2
answers

I can not add www to the domain with htaccess

I'm using laravel, and I uploaded the project to the server and I can access the domain by both myDomain.com and www.myDomain.com. and I want you to always add the www. The htaccess I have it in the following way ... <IfModule mod_rewrit...
asked by 22.06.2016 / 19:44
0
answers

Redirect from http to https except one page

I am redirecting from http to https to my page from the htaccess (I am using laravel), but I need a specific page to be the exception to this rule and keep using http: RewriteEngine On RewriteCond %{HTTP_HOST} ^misitio.com [NC] Rew...
asked by 24.08.2018 / 18:53
1
answer

Priority to files and not to folders .htaccess

Hide the PHP extensions with .htaccess, I have for example the following file: "avisos.php" that when I access the browser I type: dominio.com/avisos, the problem is that I have a folder named with the same name: "warnings" and this gives me an...
asked by 30.07.2018 / 23:46
0
answers

Order of the htaccess that is not executed

After fighting a bit I managed to advance in the htaccess that I put here yesterday, and it has stayed like this: # inicio del motor RewriteEngine On RewriteBase / # evitamos que se entienda como amigable una url que existe com...
asked by 13.06.2018 / 23:03
0
answers

How can I deny access to public folder files on the Apache server?

Try putting a .htaccess in the root of the project this way: Options -Indexes IndexIgnore * <FilesMatch "\.(htaccess|htpasswd|ini|jpg|log|bak|txt)$"> Order Allow,Deny Deny from all Allow from 192.168.0.9 </FilesMatch> But the...
asked by 15.06.2018 / 00:11
1
answer

I need to create an .htaccess file to redirect friendly urls [closed]

I have a site in my hosting but I have an error when I click on my products, as you can see on my website. I want to go to some product on my page, but the htaccess does not send me the view: http://imnovesa.com/lineas_de_productos/iluminac...
asked by 03.04.2018 / 01:16
1
answer

redirect from http with and without www to https

good day, I'm trying as I mention in the title but I do not achieve it, what I want is to go from http either (with and without www) and link a - > link as you could through htaccess this is what I have so far and it works but only wit...
asked by 22.03.2018 / 17:31
1
answer

Modify url if there is no php

I'm managing the url with .htaccess and, internally, I'm validating the URL. For example, when the URL that is accessed is the following: home.dev/control/principal/index Rewrite where the file is with the following structure: home.dev...
asked by 31.10.2017 / 17:01