Pagina 1 din 1

htaccess opencart

Scris: Vin Sep 13, 2019 8:31 am
de vlivius1
Buna ziua,

Dupa ce am facut redirectul ptr https o parte din link-uri nu mai functioneaza:

Ex:
domeniu.ro/categorie - ok
domeniu.ro/produs - ok
domeniu.ro/categorie/produs - nu merge
domeniu.ro/categorie/categorie/produs - nu merge

Ma poate ajuta cineva cu un sfat , cod, exemplu ca sa rezolv aceasta problema?

Multumesc.



Cod: SelectaĊ£i tot

Options +FollowSymlinks

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
 Order deny,allow
 Deny from all
</FilesMatch>

# SEO URL Settings
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/


RewriteEngine On
RewriteBase /

### Ptr SSL
#RewriteCond %{HTTP_HOST} !^www.
#RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
#RewriteCond %{HTTPS} !=on
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#end SSL

RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)

RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]


Re: htaccess opencart

Scris: Mar Sep 17, 2019 9:12 am
de vlivius1
Buna ziua,



Aveti ideea daca cumpar acest modul rezolv problema?

L-a folosit cineva?

https://www.opencart.com/index.php?rout ... n_id=22017



Multumesc.

Re: htaccess opencart

Scris: Mar Sep 17, 2019 4:32 pm
de Jetix
Daca te uiti la demo, vezi ca nu este chiar ce ai vrea tu. Si eu am avut aceasta problema, si am lasat-o asa.

Re: htaccess opencart

Scris: Mie Sep 18, 2019 9:08 am
de vlivius1
Jetix scrie:Daca te uiti la demo, vezi ca nu este chiar ce ai vrea tu. Si eu am avut aceasta problema, si am lasat-o asa.



Am inteles,

Multumesc pentru raspuns si timpul acordat.