Questions tagged as 'htaccess'

3
answers

How to change directory home page through .htaccess?

I have a site that when accessed, you're redirected to index.php page, but in fact I want it to be redirected to the inicio.html page. How can I change this?     
asked by 19.10.2017 / 17:50
2
answers

URL rewriting in HTACCESS ignoring existing files and folders

When I am going to pass a website on the server I put a .htaccess file with this code below: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] </IfModule> This code makes typing the site:...
asked by 10.12.2015 / 14:21
1
answer

CSS and JavaScript files do not load when using Amigavel URL

Hello, I'm trying to create Friendly URL and it worked fine on some pages only some of it is not working CSS, JS etc. I'm using this in .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^home/?$ /index.php?p=hom...
asked by 02.01.2016 / 06:44
1
answer

Internal Server Error with .htaccess file Linux mint

I'm getting an HTTP 500 error Internal Server Error on linux mint, Apache server.    Server version: Apache / 2.4.7 (Ubuntu) / Server built: Apr 3 2014 12:20:28 .htaccess file RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f Rewri...
asked by 15.07.2014 / 04:52
1
answer

.htaccess for friendly URL [duplicate]

How do I create Mod_Rewrite (htaccess) rules for my pages? I'm not used to .htaccess Rules you would like to: www.exemplo.com/index.php to www.exemplo.com www.exemplo.com/perfil.php to www.exemplo...
asked by 19.04.2014 / 21:34
1
answer

How to capture form field with .htaccess?

I'm doing in my site url friendly, though, I'm having trouble catching the form's search field with .htaccess. All my attempts give 404 error. Form: <form action="busca" method="post"> <input type="text" name="busca" required="re...
asked by 28.04.2018 / 13:44
1
answer

Routing Schema .htaccess

I have the following URL: http://localhost/devops/json/index.php And I want you to have access to the index of this page: http://localhost/devops/json/ I want the index.php display to be hidden     
asked by 09.02.2018 / 12:20
1
answer

How to translate website automatically

I have a site in Portuguese written in PHP and HTML. I would like to offer this site to other countries, but without having to translate all content manually. So I would like a tool that translates the site automatically when the person accesses...
asked by 11.08.2017 / 17:28
2
answers

do targeting with htaccess

I have a project where when the user types the site with www, it gives error. I checked the server and it does not have any htaccess in the root folder. With this, I would like to know how to make the user enter www.site.com.br or link to be d...
asked by 03.08.2017 / 19:51
1
answer

Error "X-UA-Compatible HTTP header must have the value IE = edge, was IE = Edge, chrome = 1"

I ran the W3C HTML Validator to check if there was a problem and this is the only error I have: //prntscr.com/gj1z22    "X-UA-Compatible HTTP header must have the value IE = edge, was IE = Edge, chrome = 1" I did not even have any X-UA co...
asked by 11.09.2017 / 16:04