-2
I have a version 1.7.6 multi-store installation enabled.
At first, Prestashop set up htaccess already. Each store is accessed as follows:
turns out that when trying to use www (www.meudominio.com/store-x), htaccess should redirect to correct https?
in the main domain he can do that:
of: - www.meudominio.com
for: - https://meudominio.com
now, when I try to access a store with www, htaccess removes the URL bar. the result is this:
of: - www.meudominio.com/shop-x
for: - https://meudominio.comloja-x
Has anyone ever faced a similar problem? Got any tips on how to fix?
I don’t know how to handle htacces, I’ve tried some things but without success.
follows the excerpt from htacces that I believe is making these changes:
.htaccess
//-------------------------------------------------------------
Rewritecond %{HTTP_HOST} meudominio.com$
Rewriterule . - [E=REWRITEBASE:/]
Rewriterule api(?:/(.*))? $ %{ENV:REWRITEBASE}webservice/Dispatcher.php? url=$1 [QSA,L]
Rewritecond %{HTTP_HOST} meudominio.com$
Rewriterule demo$ /demo/ [L,R]
Rewritecond %{HTTP_HOST} meudominio.com$
Rewriterule demo/(.*) /$1 [L]
//-------------------------------------------------------------
my htaccess has several snippets similar to this, but it is one for each store I have registered.. the Store itself that created these settings.
In the above case, it is a rule for the store called "demo" Just replace my real domain with "mydomain"
Already tried:
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^meudominio.com$
, see here ...– Ivan Ferrer
Yes, I had checked that article earlier. But I couldn’t solve it, I also checked on DNS settings thinking it might be the problem. After several attempts I believe it really is something in htaccess
– Felippe Miguel