Questions tagged as 'htaccess'

1
answer

Configure Slim Framework and Apache 2

Hello, good afternoon. Recently I hired linux hosting. My site uses the Slim Framework, but I am not getting access to its routes when it is in production, but at localhost xampp, it was working normally. Slim Routes for testing (not getti...
asked by 09.01.2017 / 18:10
2
answers

how to protect access to a php file?

Galea I'm using the Jquery auto-complete plugin. It works perfectly. I use jquery to call a php file that does the query in the Data Bundle. I call it like this: $("#auto").autocomplete("Busca/Cadastros.php", { width: 500,...
asked by 24.11.2016 / 13:22
1
answer

remove ".php" using .htacces on subdomain [duplicate]

I'm having a problem trying to use the page without typing the extension. Ex: link for link I have tried to find other sites on the same but none are working in the subdomain.     
asked by 27.10.2016 / 11:57
1
answer

Starting with .htaccess

Hello; I am trying to create friendly URLs for a website, but I am not succeeding in several examples that I have tested on the internet. I think my problem is how I redirect the structure of my site, I own the page empresa.php that is inside ot...
asked by 10.11.2016 / 20:03
1
answer

Direct with htaccess without changing the url

Colleagues. I have a system that is within the following directory. www.site.com.br/crm/sistema/ I would like that when entering www.site.com.br/crm, be directed to the system folder, but without changing the url, continuing www.site.com.br/c...
asked by 01.08.2016 / 22:12
1
answer

Hide directory with htaccess

Colleagues. I have the following code in htaccess that I do the targeting: RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?site.com.br$ RewriteCond %{REQUEST_URI} !^/novo/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME...
asked by 18.07.2016 / 14:57
1
answer

.htaccess with friendly URL that allows use of the GET method

Hello, my system makes use of a friendly URL, but the authentication of the API of MercadoLivre returns to my system using ?code=XXXX , what I need is that the site works in a hybrid way, both with the friendly URL and using the $_GET...
asked by 13.06.2016 / 23:38
1
answer

How to create a rewrite rule to read a repository from a site subdirectory

I have two folders in my root:    www / repo-sp /   www / repo-rj / My virtual host (www.mysite.local) points to www/repo-sp/ : When typing /rio at the end of the site, it should point to www/repo-rj/ , that is,...
asked by 29.04.2016 / 16:26
1
answer

Removing the index.php prefix on wampserver windows, is it possible?

Is it possible to get the index.php prefix in my local projects using wampserver?     
asked by 01.02.2016 / 14:46
2
answers

Alternative URL in PHP

I'm having a hard time creating an alternative, friendlier URL for my clients. The real estate system that I have generates an alternate address for each of them, for example: http://foo.bar/site.php?id=1042 However, I need the URL...
asked by 23.02.2016 / 13:20