Url rewrite does not work on https

0

I have the following problem: My .htaccess defines my URL rewrite that works perfectly when accessed by http but when accessed by https it informs that the page was not found. Below is my .htaccess.

AddDefaultCharset UTF-8

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/\.]+)/?$ index.php?area=$1 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?area=$1&sub=$2 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ index.php?area=$1&sub=$2&subitem=$3 [L]

Has anyone ever gone through the same thing? Do you have any idea what that might be?

    
asked by anonymous 25.02.2015 / 14:32

1 answer

1

Solved, I'll leave the answer here to help anyone else go through this.

In apache the HTTP handling setup was with AllowOverride all and this frees the rewrite in the directory I need. But HTTPS was set to AllowOverride none, thus preventing url rewriting.

By switching to AllowOverride all the rewrite has worked perfectly.

    
25.02.2015 / 15:14