Questions tagged as 'htaccess'

1
answer

Redirect any html extension URL to a specific page

Please, I have a question in .htaccess (or apache). I need to redirect any url containing .html or .htm extension to a specific url. Example: domain.com/test.html - > domain.com/page domain.com/teste123.htm - > domain.com/page...
asked by 04.09.2015 / 00:55
1
answer

Useful commands for .Htacess [closed]

I would like to know some commands to use in .htacess that allow you to do the following actions. 1- Block access to all directories so that if the user tries to see the contents of this directory be barred with a warning or redirect to a pag...
asked by 16.07.2015 / 12:48
1
answer

How to change link of my page with htaccess

My normal url is: http://localhost/paginas/noticias.php?id=1 I wanted it this way: http://localhost/paginas/noticias/1 The id 1 is generated by php, I do not know how to make it look like this in htaccess.     
asked by 24.07.2015 / 00:17
1
answer

How to redirect all urls from a subdomain to a specific url?

How can I do this with .htaccess ? All pages of http://axi.axitech.com.br/ should be directed to page http://axi.axitech.com.br/lojas-virtuais     
asked by 27.05.2015 / 17:41
1
answer

.htaccess remove name from the vars of the url but leave the vars

At this moment I have the URLs: www.meudominio.com/?route=service&serv_name=cascais_proxima&id=1 and www.meudominio.com/?route=ticket&serv_id=1&ticket=A But I'd like you to stay: www.meudominio.com...
asked by 17.07.2015 / 15:58
1
answer

Remove 'public' from URL - Laravel

I'm accessing my site like this: link I would like to just type link because I want it to work when I enter the domain as well. Is there any way to resolve this without being changed by folders, but only via code? I do not understand a...
asked by 08.05.2015 / 18:08
1
answer

How to release access to the Public folder

Hello, I'm trying to use htaccess to redirect a project, but I have encountered a problem with accessing my Public folder, where my assets are. Below is my .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteCond...
asked by 23.04.2015 / 15:36
1
answer

Get QueryString and redirect with .htaccess [duplicate]

I would like to get to the URL of querystring: url.htm and direct with htaccess. I'm almost succeeding: RewriteRule ^([A-Za-z-]+)\.htm$ conteudo.php?url=$1&%{QUERY_STRING} [qsappend] RewriteRule ^conteudo.php(.*)$ http://meusite.com/nova...
asked by 20.05.2015 / 02:24
1
answer

Router on Zend 1.12 hide controller and action

Hello, I want to make the user not see my controller and the action in ZF 1.12. Ex: http://meusite.com/produtos/listar/item/iphone-5s-preto I want it to look like this: http://meusite.com/iphone-5s-preto.html You do not even need...
asked by 28.04.2015 / 00:16
4
answers

How to redirect url with htaccess out of domain?

I have a www.dominio.com.br domain. On a given page, I need to put a link to google + from the client. I'm using: a href="www.google.com" target="_blank" For tests, and what is happening is that instead of the system opening a new...
asked by 20.07.2015 / 16:21