Questions tagged as 'htaccess'

1
answer

Change site via .htaccess

I have the following urls: www.meusite.com.br/pagina1 www.meusite.com.br/pagina1/a/b/c www.meusite.com.br/pagina1/1/2/nome-perfil I need to access my site, I have a redirect in htaccess to another website, with the same base, becoming: ww...
asked by 25.07.2016 / 16:36
1
answer

block image link to other sites

I have the following folder in the root of my site: Arquivos/Fotos/goto1.jpg If I type in the browser the link with my site (www.mysite.com/Arquivos/Photos/goto1.jpg) the photo opens, and is it possible to block it? I mean let the photo onl...
asked by 26.07.2016 / 14:18
1
answer

Htaccess does not correctly validate the redirect rule

It has in htaccess where regex works perfectly with no numbers in the rule, but with numbers not working correctly. RewriteRule ^([a-zA-Z]{1,20})-to-([a-zA-Z]{1,20})-([a-zA-Z0-9-]{1,30})\/?$ page.php?ti=$1&at=$2&pl=$3 [NC,L]//linha...
asked by 07.04.2016 / 05:21
1
answer

I would like to leave my friendly URL in .htaccess [duplicate]

Hello, I'm trying in several ways trying to make my URL more friendly but I'm not able to leave it, it looks like this: link I would like to leave it like this: link With the above example I would like to take all those GETs an...
asked by 23.02.2016 / 03:10
1
answer

.htaccess - Friendly URLs with special characters

I have the following line: RewriteRule ^usuario\/([a-z,0-9,A-Z,._-]+)?$ index.php?pg=usuarios&usuario=$1 I needed it to accept the characters @ : = ! ? How can I do this?     
asked by 02.04.2016 / 00:25
2
answers

URL rewrite with parameter to another .htaccess site

I would like to write a rule in .htaccess with RewriteRule so that when someone enters the old site, it is redirected to the new site by keeping the requested parameter on the old site. Old site: velhosite.com.br/?people=alg...
asked by 16.11.2015 / 12:27
1
answer

Redirect 301 adding many "/" s at the end

I'm facing the following problem with a combination of more than .htaccess in my project. I have the following structure siteprincipal.com.br (não é WordPress) and inside a subdomain with another WordPress site site2.siteprincip...
asked by 12.10.2015 / 17:40
1
answer

How to redirect .com domain with .htaccess

I have 2 domains, example.com and example.com pointing to the same wordpress site. I would like to redirect every time someone goes to example.com, is redirected to example.com/en I found this code, but it also redirects example.com.br to...
asked by 07.10.2015 / 17:02
1
answer

Force via HTACESS a single URL to run without httpS

I have an ecommerce site, it's all running with HTTPS, so I put this code in HTACESS: RewriteCond %{HTTPS} off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] It works fine, the problem is that I need a single URL not to undergo...
asked by 05.10.2015 / 23:34
2
answers

How to write this url in .htaccess to get a friendly url? [duplicate]

I need to write an instruction in .htaccess to get this url in a friendly format. This is it: link ... I need to become: link You do not understand anything about .htaccess Thank you     
asked by 06.11.2015 / 12:18