Questions tagged as 'htaccess'

3
answers

Secure SRC url by HTACCESS

I'm using friendly URL via HTACCESS and because I'm using this the pages lose the styles and js. Because the path (URL) is done as ex / category / pizza then it looks for src="category / pizza / style.css". Would there be any way to fix the base...
asked by 22.07.2014 / 05:53
3
answers

301 https protocol redirect to http

I would like to do a 301 redirect (via .htaccess) only on 1 link I have https to http without changing any other server or protocol link. Link https: link Redirect To: link NOTE: Note that the link is the same only changes the https...
asked by 20.06.2014 / 22:02
0
answers

Ignore Friendly URL for certain folders in .HTACCESS

There was a big problem with a client that I have, it needs to have two stores (using Open Cart) in the same domain, but both are different products, layout and plug-ins (so I can not do two stores like the Open Cart enables). The URLs would loo...
asked by 03.12.2014 / 18:52
1
answer

Error with controller in codeigniter with the name system.php

I'm moving on a project that is in CodeIgniter. There is a controller called system.php which is to access admin , but when I try to access it localhost/meusite/system/método , it gives access denied because it thinks I'm...
asked by 21.05.2014 / 20:21
3
answers

Help with Friendly URL with PHP and htacess

I'm new to programming in PHP, I created a dynamic site using the following code: <nav> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link" href="?pag=home">Home</...
asked by 24.08.2018 / 22:08
1
answer

How to recover everything after the "?" in RewriteRule?

I have the following rule that was created by another programmer and that is working in some processes: RewriteRule ^chk-error/(.*) chk_err.php?error=$1 [L] It retrieves everything that comes after chk-error/ and puts it inside er...
asked by 08.06.2017 / 14:39
1
answer

Send hidden parameters to another page without showing them in URL

After doing a search on a form method POST . <form method="POST" action="../controller/precontBuscaProg.php"> <input type="date" name="dataini"> </form> I get on another page what was sent receiving the data...
asked by 30.08.2016 / 15:55
1
answer

Internal Server Error with Htaccess file

Everything started when I moved from EasyPHP to VertrigoServ, the .htaccess file worked perfectly in EasyPHP, but here I am encountering these problems ... I have no idea how to resolve this ... HTACCESS RewriteEngine on RewriteCond %{REQUES...
asked by 17.03.2016 / 04:21
1
answer

Htaccess - document root

I would like to do the following: #diretorio não existe www.teste.com.br/diretorio Every time you access this address, apache would open: #outro_diretorio/pagina esse existira www.teste.com.br/outro_diretorio/pagina but all navigation...
asked by 23.10.2015 / 17:22
1
answer

Site redirecting to url with / at the end

When I log into my site www.example.com It redirects to www.example.com / How to solve this? Follow my .haccess Options -Indexes #Ativamos a RewriteEngine RewriteEngine on RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^(www...
asked by 01.01.2018 / 22:54