Questions tagged as 'mod-rewrite'

0
answers

Apache - Permissions with Directory, provide access only by root (/)

I'm trying to set permissions on the apache settings. What I want to do is to let root, "/", but not any url that has any character after the slash. For example: localhost or localhost / can be accessed. localhost / index.php, localhost / sub...
asked by 22.08.2018 / 04:23
1
answer

Loss of access to the database after restarting the virtual machine

I have a database in a VM, could restart the VM and access the database after this normally But now if I restart the VM, when I try to access the database with pgAdmin III I get the following message:    Server does not listen   ...
asked by 30.05.2018 / 22:22
1
answer

Htaccess - Rewrite URL with .htaccess within a subdirectory

I'm trying to rewrite a URL where the .htaccess file is inside a subdirectory. Current URL: localhost / Development / Projects / redirect / index.php URL I'd like to use: localhost / redirect / index.php My intention is to hide the path...
asked by 11.01.2018 / 23:12
0
answers

Htaccess - Rewrite CSS with 2 .htaccess files

I am trying to rewrite the path of my css, but due to the use of 2 .htaccess files only one of my URLs works. My structure is as follows: htdocs (root) index.html .htaccess (1) Development Projects redirect index.php .htacc...
asked by 12.01.2018 / 22:50
1
answer

How to retrieve GET variables after it has been modified by .htaccess RewriteRule?

I have the following rule in .htaccess RewriteRule ^acesso-erro/(.*) proc_error.php?error=$1 [L] This rule retrieves the variables from the URL and places a variable "error". How can I retrieve this variable from the proc_error.php pag...
asked by 07.06.2017 / 20:05
1
answer

HTTP Access Control (CORS) for multiple domains

How to release HTTP access control (CORS) of images using XMLHttpRequest for all domains below in .htaccess and not using global permission with "*": Access-Control-Allow-Origin: http://www.osite.com.br, https://osite.com.br, http://osite.com....
asked by 23.05.2017 / 16:29
0
answers

Error requesting internal CakePHP pages?

I have a problem with my CakePHP , I am completely new to this framework and my erro is as follows:    2017-05-01 10:09:45 Error: [MissingControllerException] Controller class PagesController could not be found. E...
asked by 01.05.2017 / 15:27
1
answer

.Htaccess redirects even with nothing configured

Well, I recently asked a question right here in the Stack ( Questions in .htacess ) about a bit of htaccess to solve a problem I'm having in the company. After giving a good study and begin to understand +/- how things happen I can not find a...
asked by 30.11.2016 / 13:39
1
answer

Apache RewriteEngine affecting tomcat - Ubuntu 16 server

I have the following problem. I configured the htaccess file so that all requests are redirected to use ssl (https). I have just installed Tomcat on the server and I needed to "ignore" the redirect in case of port 8080 access (tomcat default...
asked by 23.08.2016 / 15:17
0
answers

How to ignore a subdirectory that is not being represented in the current address?

Note: The links are fictitious, but they represent my problem. I have a project made in prestashop that in the production environment, is inside a sub directory: www.site.com/rio/index But in my development environment I'm using it,...
asked by 30.05.2016 / 15:32