21
General Support / Re: "Act on Behalf" not working
« Last post by Basara on November 27, 2024, 06:01:34 AM »is there any alternative optionDid you clear the browser cache?
is there any alternative optionDid you clear the browser cache?
This error happens to me often.Hello.
i have same issue on my new subdomain.webpage.tr on base v.1.4.0. php 8.3
What should be edited in my case ??
Set both the store URL and secure URL to HTTPS. Logout from admin and close all tabs with AbanteCart pages. Clear the browser cache and try again.
i have same issue on my new subdomain.webpage.tr on base v.1.4.0. php 8.3
What should be edited in my case ??
Hello.
Please use default htaccess rules from https://raw.githubusercontent.com/abantecart/abantecart-src/refs/heads/1.4.1/public_html/.htaccess.txt
If you encounter any issues with the htaccess rules or find them incompatible with your server, try removing them block by block and testing each time. Additionally, you can contact your hosting support for assistance with htaccess compatibility.
Lastly, ensure that the URL you use to visit your store matches the store URL set in your AbanteCart admin. https://abantecart.atlassian.net/wiki/spaces/AD/pages/5832828/Store+URLs+SSL
# 1. To use URL Aliases you need to be running apache with mod_rewrite enabled.
# 2. In your abantecart main directory rename file htaccess.txt to .htaccess
# 3. Edit file .htaccess. If abantecart is installed in yourdomain/ subfolder change configuration line RewriteBase / to RewriteBase /subfolder/.
# Example: yourdomain.com/store use RewriteBase /store/
# Important to have / at the end of the line.
# 4. if htaccess and mode_rewrite still does not work - check and set apache2 webserver directive AllowOverride All for your virtual hosts
# For any support issues please visit: https://forum.abantecart.com
Options +FollowSymlinks
# Prevent Directory Listing
Options -Indexes
# Allow Symlinks for Clean URLs
Options +FollowSymlinks
# Prevent Access to Hidden Files (e.g., .git, .htaccess)
<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>
# Prevent Direct Access to Template Files
<FilesMatch "\.tpl$">
Order deny,allow
Deny from all
</FilesMatch>
# Block Specific URL Pattern (/om.tr) Except Admin Login
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/om\.tr [NC]
RewriteCond %{QUERY_STRING} !rt=index/login [NC]
RewriteRule ^om\.tr/?(.*)$ /$1 [L,R=301]
# SEO URL Settings
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
# Retina Images Handling
RewriteCond %{HTTP_COOKIE} HTTP_IS_RETINA [NC]
RewriteCond %{REQUEST_FILENAME} !@2x
RewriteRule ^(.*)\.(gif|jpg|jpeg|png|webp|avif)$ $1@2x.$2 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)@2x\.(gif|jpg|jpeg|png|webp|avif)$ $1.$2 [L,QSA]
# Compression for Performance
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript
</IfModule>
# Browser Caching for Improved Load Speed
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/javascript "access 1 month"
</IfModule>
# Cache Control Headers
<IfModule mod_headers.c>
Header set Connection keep-alive
<FilesMatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf|webp|avif)$">
Header set Cache-Control "max-age=2678400, public"
</FilesMatch>
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=7200, private, must-revalidate"
</FilesMatch>
<FilesMatch "\.(pdf)$">
Header set Cache-Control "max-age=86400, public"
</FilesMatch>
<FilesMatch "\.(js)$">
Header set Cache-Control "max-age=2678400, private"
</FilesMatch>
</IfModule>