Questions tagged as 'htaccess'

1
answer

Hide folder path with .htaccess

Olar. I'm working with a .htaccess file but I'm having a hard time performing what I need. I have the domain site.com.br/painel/view/painel_de_acesso.php and would like to convert this url to site.com.br/painel_de_acesso > What logic c...
asked by 04.11.2017 / 18:43
1
answer

remove the php extension and force any page as https via htaccess

Personal I'm trying to make a rule in .htaccess to force https on all pages and hide the .php extension. It is hosted on kinghost and I already have the certificate. I have the separate codes but I could not do the two things together where ever...
asked by 22.08.2017 / 02:27
1
answer

Htaccess - Friendly URL in the root of the site

How to make friendly URL open in root. I have the file WorkView.php? id = 1 would like it to open like this:    www.site.com/87190-first-test Does not work: RewriteRule ^([^/]*)\$ /trabalhoVer.php?id=$1 [NC,L]     
asked by 09.08.2017 / 15:17
2
answers

How to create an exception in htaccess for locking folders

I have a folder that contains some PDFs and I would like to block access to the folder through the url (ex: www.site.com/pdf) so I got the following command deny from all however when I call PDF inside an iframe the server says I'm not al...
asked by 12.08.2017 / 04:02
1
answer

Conditional 301 redirect for IP to another domain

I would like to redirect all users who access a particular page from one domain to the same page in another domain except myself, I thought about using the conditional redirect by following way through the .htaccess file: Options +FollowSy...
asked by 17.08.2017 / 04:00
1
answer

Configure web.config file for PHP project in subdirectories

I have a site in php under test in a directory above the root of the official website. To set up friendly URLs ( remove .php ) is by web.config . I made a rule that does not work for subdirectory files. Ex: products / something and produ...
asked by 28.06.2017 / 17:34
1
answer

Split into AMIGAVEL URL without creating folder

Hello, I'm creating a website and starting to work with friendly URls, with this structure I can perform the procedure normally and retrieve the values. Now I would like to create divisions in the URL, for example: I have today that works:...
asked by 10.07.2017 / 21:49
1
answer

.htaccess to prevent navigation

I have a Debian server and the directory for the projects in apache is the traditional / var / www / html, I'm trying to block the browsing of directories and sub-directories by browser with .htaccess but I'm not hitting. The .htaccess code i...
asked by 22.06.2017 / 19:57
1
answer

htaccess redirect Mobile

I wanted to do a redirect from the desktop site to the mobile site using htaccess. I already managed to do it, however I wanted to move the url from the desktop to the mobile url so I could handle the conversion. Ex: www.sitedesktop.com.br...
asked by 25.05.2017 / 14:49
1
answer

Is it possible to configure display errors in .htaccess?

In the information about my hosting service, there is a line saying that I can not change php.ini , but that I can change most settings through .htaccess . I would like to enable the errors through .htaccess if possible, and o...
asked by 28.03.2017 / 17:53