Questions tagged as 'htaccess'

1
answer

How to do a redirect via .htaccess from a subdomain to the main domain?

I have a domain (www.dominio.com.br) and a subfolder (www.dominio.com.br/pasta) and would like to redirect all the links of this folder to the domain. Examples: www.dominio.com.br/pasta www.dominio.com.br/pasta/noticia/nome-da-noticia www.dom...
asked by 26.03.2018 / 17:02
3
answers

How to use Rewrite to include sub-directory and slug?

Editing: Refined the information based on the answers and doubts of the collaborators. Internal urls in menus: a href="/ courses / math /? slug = algebra-linear"> Math Algebra a href="/ courses / science /? slug = molecular-structure"> St...
asked by 13.02.2018 / 01:37
1
answer

.htaccess Internal Server Error

I want to make my URLs friendlier and I'm using .htaccess for this. The problem is that I am returning an Internal Server Error, and I could not identify where my Rule error is. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d Re...
asked by 14.02.2018 / 14:03
1
answer

Blow directories and files with .htaccess

I do not have much knowledge on .htaccess and I came across a project where it blocked some images that I uploaded to an img project folder. RewriteRule ^(css|js|img)/(.*)$ statics/$1/$2 [L] But other images in this folder loaded nor...
asked by 30.01.2018 / 16:07
1
answer

Problems with rewriterule in htaccess Similar URLs

I have two URLs link link They are different URLs that lead to different .php files, so I did so my htaccess: RewriteRule ^entre-em-contato entre-em-contato.php RewriteRule ^en antigo-en.php But both URLs are leading to the fil...
asked by 17.01.2018 / 15:04
1
answer

Problems with mod_rewrite in Apache

I've enabled mod_rewrite in local Apache, but it does not seem to be working. I'm using Linux Deepin 15.5 and the process I did was: sudo a2enmod rewrite The answer I had:    Enabling module rewrite. I restarted Apache: sudo system...
asked by 15.01.2018 / 14:57
1
answer

Error performing form search with Friendly URL

I have the following .htaccess that has worked perfectly so far: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^es/guarapari/empresas/(...
asked by 12.12.2017 / 17:55
2
answers

Http redirect to https via .htaccess - Godaddy

I have signed an SSL certificate, installed the certificate, but my site does not appear on https. Support told me that I have to change the .Htaccess file and redirect to https, but I already researched several ways and none worked. I use...
asked by 18.01.2018 / 19:41
1
answer

URL redirection and PORT in .htaccess

Next, I have a URL: link What I wanted to do is, when someone logs in with this url, apache redirect to the following address: link I already tried several things including looked at other issues here from the community, but I always find...
asked by 05.12.2017 / 17:12
1
answer

replace hyphen by underline htaccess

How to replace the hyphen next to the number by underline in that URL (htaccess). www.site.com.br/post/77-eu_tu_eles     
asked by 01.11.2017 / 18:46