0
I’m using the Uniform Server portable server, I’ve already decoded the line to activate apache mod_rewrite, but I’m getting the error 403 Forbidden for any file . htaccess to use, this first is from Codeigniter:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
This second of another application:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
OBS: also already replaces AllowOverride None
for AllowOverride All
Why does this happen?
Verified user and permissions ?
– Rafael Salomão
I didn’t know I had to do this in windows, because I only copied it from another folder, which in the case is xampp, and was already working.
– Thiago
It was a kick! So I just commented. Due to return 403 (prohibited access). In case solved? If not resolved check your file . htaccess is correctly saved in ASCII, any additional character may present this error. Delete the file and create a blank and force the type to ASCII, and see if the server runs, then add line by line to understand where the problem is.
– Rafael Salomão
Put a file
index.php
with aecho "hello world"
and remove the.htaccess
. See if the 403 status is returned in it. If so, the problem is not.htaccess
. You can post the Virtualhost file?– Filipe Moraes