merhaba. sitemin subdomainine opencart 3... kurulumunu yaptım. admin paneline bağlana biliyorum. fakat, mağazaya git dediğimde site görüntülenememekte. direk panel den uyarı almaktayım. site
https://online.imajoptik.com.tr/ bu sorunu basıl aşa biliirm?
htaccess düzenlemesi yaptınız mı ?
/ (root) anadizinde .htaccess dosyanıza ekleyin
Kod:
RewriteCond %{HTTP_HOST} !^(www.)?imajoptik.com.tr$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?imajoptik.com.tr$ [NC]
RewriteCond %{REQUEST_URI} !^/web/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /imajoptik/$1
RewriteCond %{HTTP_HOST} ^(www.)?imajoptik.com.tr$ [NC]
RewriteRule ^(/)?$ imajoptik/ [L]
Opencart dizini içindeki htaccess içeriği
Kod:
Options +FollowSymlinks
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteRule ^online/.*$ - [PT]/.*$ - [PT]
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/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]
Deneyip sonuç bildirirsiniz. Mevcut htaccess yedeklerinizi alınız.