proper .htaccess

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Jan 13, 2014 11:41 am
Reply with quote
Report this post
I am trying to prorect the site with more advanced .htaccess file but the cart button at the top stops to work. Which compoment/path uses the cart button to work in order to allow it in the .htaccess file?
User avatar
Junior Boarder

GK User
Mon Jan 13, 2014 12:25 pm
Reply with quote
Report this post
Hello,

The cart uses for AJAX loading this URL: http://www.yourdomain.com/index.php?tmpl=cart
User avatar
Administrator

GK User
Mon Jan 13, 2014 12:47 pm
Reply with quote
Report this post
May ask you to take a look at the .htaccess file that I am using to see what actualy kills the AJAX?
User avatar
Junior Boarder

GK User
Mon Jan 13, 2014 12:53 pm
Reply with quote
Report this post
Please send it to me using the PM message or paste it in this topic.
User avatar
Administrator

GK User
Tue Jan 14, 2014 3:30 pm
Reply with quote
Report this post
In my opinion your problem is connected with this rules:

Code: Select all
RewriteCond %{QUERY_STRING} (^|&)tmpl=(component|system) [NC]


Please try to change it to:

Code: Select all
RewriteCond %{QUERY_STRING} (^|&)tmpl=(component|system|cart) [NC]
User avatar
Administrator

GK User
Tue Jan 14, 2014 3:49 pm
Reply with quote
Report this post
dziudek wrote:In my opinion your problem is connected with this rules:

Code: Select all
RewriteCond %{QUERY_STRING} (^|&)tmpl=(component|system) [NC]


Please try to change it to:

Code: Select all
RewriteCond %{QUERY_STRING} (^|&)tmpl=(component|system|cart) [NC]


This brokes the entire site for some reason. Also, I saw that something other creates problems with some of the images. It seems that I should start try/error exam to see where are the problems.
User avatar
Junior Boarder

GK User
Tue Jan 14, 2014 4:04 pm
Reply with quote
Report this post
Please also try to check the next rule connected with tmpl param - maybe it cause a problem. Additionally please make sure that you are not using extensions like admin tools which also blocks non-standard tmpl requests.
User avatar
Administrator


cron