Questions tagged as 'htaccess'

0
answers

Adapt Web.Config to .htaccess

I need to keep two sites in the same hosting (one I've developed, let's call site 01) and another one which is a Wordpress created by the old company that served the client (We call site 02). The directory structure looks like this: / com...
asked by 19.12.2016 / 20:06
1
answer

Multi language site / Multi Language (Automatic country detection without permission) [duplicate]

I have a small project and would like to create a multi language system for the site. I found several forms here on the site, but I did not see any with this example, which stackoverflow also uses. How to do it? In this way I identify th...
asked by 27.10.2016 / 12:24
1
answer

HTACCES url problems - 301 redirect does not work on a page

I redirected 301 of some of the url's from my site recently and started to give the image problem: My.htacceslookslikethis:RewriteEngineOnOptionsAll-IndexesRewriteCond%{SCRIPT_FILENAME}!-fRewriteCond%{SCRIPT_FILENAME}!-dRewriteRule^(.*)$inde...
asked by 06.10.2016 / 13:32
0
answers

Blocking a directory for everyone except the local server

I use the JQuery Autocomplete plugin, and inside the folder of my server, I have a folder named Search, with several php files. I would like to know how to block this folder so that only my server has access to it. I tried to do via .htacess,...
asked by 24.08.2016 / 13:24
0
answers

Help .htaccess URL's Friendly

Hello, I'm developing an online compiler, similar to IdeOne , and would like users to be able to access some of their codes already made on the site so simpler. I currently use a page codAnterior.php for this, I pass it by GET the cod...
asked by 30.10.2016 / 01:23
1
answer

.htacess Configuration - Dynamic Error Page

I would like to know if it is possible to generate a dynamic error page from the parameters passed to an html page and take these parameters through a javascript code? Or in any other way you do not need to create a page for each error. Examp...
asked by 17.06.2016 / 16:07
0
answers

SSL on shared server

I have a shared server with several sites (all mine), where one of them has SSL certificate. However, when typing https://outrosite.com.br (com ou sem www) It displays the site it is in: (without redirecting the URL) https://dominiocom...
asked by 18.06.2016 / 03:58
2
answers

.htaccess wildcard subdomain pointing to directory + hash

Pretty simple to doubt. Redirect by .htaccess containing a subdomain wildcard and hash. From: http://carros.domain.com/visualizar#123 http://casas.domain.com/visualizar#345 http://aps.domain.com/visualizar#567 To: http://domain.com/car...
asked by 11.12.2015 / 07:31
0
answers

Slim Framework status code 404

When making requests I get the following error.    XMLHttpRequest can not load link . Response for preflight has invalid HTTP status code 404 My .htaccess looks like this: link When I'm not inside my domain it works. So I dec...
asked by 11.07.2016 / 15:56
0
answers

Redirect with .htaccess

I'm using the following mod-rewrite rule RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)/([^/]+)/?$ index.php?lang=$1&page=$2 [L,QSA,NC] But now I need to redirect an old page to the new one....
asked by 05.05.2016 / 13:03