Questions tagged as 'htaccess'

2
answers

How to make my URL friendlier? [duplicate]

I have the following URL:    www.site.com.br/www/login.php And I wanted to leave it like this:    www.site.com.br/login How can I do this through .htaccess?     
asked by 18.07.2017 / 21:40
1
answer

Htaccess Login and Password [duplicate]

I'm having a problem, I have a directory of different files of type csv, xls, pdf, docx ... I wanted the person.h that put in the browser the file link did not have access to it, only those that made access by the login page had access. How do...
asked by 14.07.2017 / 16:50
2
answers

Redirect file to URL via .htaccess

I'm using UOL Host for my site and I'm having trouble redirecting the home page to a subdomain I've created. Searching how to do this, I found that the way to do this would be: Redirect 301 /index.php link My index.php has another na...
asked by 19.04.2017 / 20:01
0
answers

How to optimize the site according to the analysis response?

Recently I blogged for my wife, link which I am now working on to optimize site response time. I'm using Google's PageSpeed Insights to build on me if I'm making progress on optimization. At the end of the review, it generates a report...
asked by 08.08.2017 / 21:40
1
answer

How to create a friendly URL with undefined parameter number

Hello, would anyone know how to do this regular expression in .htaccess? I need to leave the friendly URL pattern in this format: http://dominio.com.br/usuario/joao.json http://dominio.com.br/usuario/adriano.json http://dominio.com.br/usuar...
asked by 10.10.2016 / 21:34
1
answer

Can I use SetOutputFilter DEFLATE without leaving a cached copy?

I know that SetOutputFilter DEFLATE is meant to compress the file to be received by the browser. I used this in my .htaccess to reduce the loading time of the data.js file. <FilesMatch "^(dados)\.js$"> SetOutputFilter DEFLATE File...
asked by 26.01.2016 / 15:44
1
answer

Block file download via PHP script

Hello, I'm having trouble downloading some files. I suspect someone on the team is 'inputting' a php script that downloads files from the server (such as bd configurations in production). I wonder if it is possible to block the download via s...
asked by 03.08.2018 / 19:28
0
answers

Configure Friendly URL in .htaccess

I'm having problems setting up my .htaccess file. I have the following URL:    www.dominio.com.br/artigo?leitura=priminal-posting And, I wish it to look like this:    www.dominio.com.br/artigo/leitura/priminal-posting or...
asked by 28.07.2016 / 16:12
0
answers

Cache: How to use mod_headers

I have a Nginx server in a shared environment where it is not possible to enable max-age because it is part of mod_expires , which is only available in a dedicated environment. I was instructed by the support to use mod_head...
asked by 15.10.2015 / 05:24
1
answer

Friendly URL with Generic Parameters .htaccess [duplicate]

I would like to set up a URL friendly with generic parameters, that is, receive any parameter in any quantity or file. Today I set the .htaccess so that the filename becomes URL . File I'm using: <IfModule mod_rewri...
asked by 18.01.2016 / 12:01