Questions tagged as 'htaccess'

1
answer

No file appears in the cropping bar

How do I display only the folder in the address bar, eg:    www.teste.com.br/admin When it looks like this:    www.teste.com.br/admin/index.php     
asked by 22.12.2016 / 13:58
1
answer

.Htaccess redirects even with nothing configured

Well, I recently asked a question right here in the Stack ( Questions in .htacess ) about a bit of htaccess to solve a problem I'm having in the company. After giving a good study and begin to understand +/- how things happen I can not find a...
asked by 30.11.2016 / 13:39
0
answers

HTACCESS Change: Rewritre URL to insert domain

Good morning! I have a site running today on Locaweb, and it has presented several problems of slowness and we believe it to be the server. We are trying to migrate to Hostgator for testing, and we are using the temporary access address. B...
asked by 27.10.2016 / 15:34
0
answers

Problem with .htaccess on amazon EC2

I'm migrating a site to Amazon EC2 (ubuntu with apache, php and mysql) and I'm having problems with link routes. My .htaccess file is basically like this: RewriteEngine On Options +FollowSymLinks RewriteRule ^fale-conosco/?$ faleconos...
asked by 07.10.2016 / 16:39
1
answer

Rewrite module at times of error 500

I'm doing a project, and I learned a little about the rewrite of URL's , I did as I saw in the tutorials, but sometimes when I try to access the address the browser returns erro 500 , that would be some problem with my htaccess...
asked by 02.10.2016 / 23:38
0
answers

Doubt with htaccess files

I have a question about a setting in my .htaccess file. I have a page with the following name: gastronomia.php From there my file includes the following line to make it friendly: RewriteRule ^gastronomia$ gastronomia.php So far so...
asked by 02.09.2016 / 21:32
1
answer

How to redirect a request to a specific folder?

I'm using Apache 2. I'm currently developing a website and would like to show a preview to my client. To not have to mess with DNS now, I need a way to map the URLs of the sites to specific folders. For example. I am developing a website for...
asked by 22.08.2016 / 19:23
2
answers

Difficulty with rewriting friendly URLs

I'm not very experienced with .htaccess and I'm having some difficulty rewriting the URLs of a site. In the site in question, I first forced the rewrite of the URL to HTTPS (the site did not have SSL before): Options +FollowSymlinks ErrorD...
asked by 27.09.2014 / 07:03
1
answer

Symfony3 project being accessed by mysite.com/web instead of mysite.com

Hello, I'm using Symfony 3 in my new project. I just uploaded the same to the host. However, in order for me to navigate through the project, I need to go to the URL mysite.com/web instead of the mysite.com URL. How can I resolve t...
asked by 15.07.2016 / 19:43
0
answers

Free fonts per domain in .htaccess

<FilesMatch "\.(ttf|otf|eot|woff|TTF)$"> <IfModule mod_headers.c> SetEnvIf Origin "http(s)?://(www\.)?(siteneme.com.br|www.sitename.com.br)$" AccessControlAllowOrigin=$0 Header add Access-Control-Allow-Origin %{Acc...
asked by 25.08.2016 / 20:48