Questions tagged as 'htaccess'

1
answer

htaccess redirect 301 URL that does not exist

There was an old site and all your URLs have changed. A URL that was well found on Google was: Yourdomain.com/datacenters Now I want to redirect this URL to: mydomain.com/data-centers In htaccess I did: redirect 301 /datacenters...
asked by 17.01.2018 / 15:12
0
answers

How do I make a friendly url with PHP? [duplicate]

I'd like to use this to mask the data contained in the url. something like:    localhost / webservice / redes.php? parameter = 1 per   localhost / webservice / networks / consult / How do I do this?     
asked by 26.01.2018 / 13:25
0
answers

Hide the .html extension of the files in the url using .htaccess

I created some pages .html and put online. In the browser file extensions are visible. However I want to hide them to make urls more "friendly". For example: instead of www.meusite.com/contato.html I want only www.meusite.com...
asked by 27.12.2017 / 17:10
0
answers

password .htaccess

Good morning everyone, so I'm setting up a movie server and I have several movies in a vps and my site is hosted on the hostgator. Is it like for a password with .htaccess in my vps and do authentication with the post method? Why before I get th...
asked by 06.12.2017 / 09:16
1
answer

R = 301, htaccess redirect to new page

Well I created a page with the custom URL RewriteRule ^produtos/([A-Za-z0-9-]+)/?$ produto.php?product=$1 [NC,L] Okay, so good, the new link works But I'm trying to block direct access by the URL produto.php?product=$1...
asked by 01.12.2017 / 01:06
0
answers

Problems with .htaccess when hiding public folder 5.4

I need to do deploy for production of an application that I migrated to laravel 5.4, in test environment I am using the virtual host on windows where I type in url 'mysite1' and until then beauty. But when I was setting up with .htaccess when...
asked by 23.11.2017 / 01:32
0
answers

Problems with .htaccess root folder and https redirect

I have a problem here, I do not have knowledge with .htaccess and I'm not able to configure it. I need to redirect the www domain to the www domain, an error is that it is redirecting all HTTPs domains to and the root folder is...
asked by 10.11.2017 / 08:24
1
answer

htaccess redirect

I have the following redirect: RewriteRule ([^/]*)\/([^/]*) http://ip/~user/codigo.php?nome=$1&numero=$2 To generate the url:    link But there are other folders, such as assets / css / main.css and others like /css/name / othe...
asked by 26.10.2017 / 18:44
1
answer

Redirecting other domains (http / https) to main (https)

Talk about it! I'm having a question about https redirection. I have a ".com" domain (SSL installed), but ".com.br" does not have SSL. I only do the redirect for ".com" with SSL, until then blz, but if I try accessing the link site gives...
asked by 02.11.2017 / 15:54
2
answers

I can not capture ROTA without using index in URL

In short, it only works if I put index.php in the URL. It looks like it's in .htaccess, but I do not know where. I would like to know which setting is incorrect or what I could do to find out my error. Data: Debian (9) Apache / 2.4.25 (Debian...
asked by 28.10.2017 / 18:17