SEF Advance with Virtuemart
- Saka
-
- Offline
- Administrator
-
14 years 10 months ago #5473
by Saka
Emir Sakic
www.sakic.net
Hello,
PROBLEM 1: It is Virtuemart that's doing this redirect. It is setting a cookie on first time visit. So I think it has nothing to do with SEF Advance. You can verify by disabling SEF Advance and check again.
PROBLEM 2: There is an option in SEF Advance "Redirect non-SEF URLs to SEF". If you set it to Yes it should redirect to clean URLs. However, note that this can cause problems for checkout in VM so if you experience that deactivate it.
PROBLEM 3: It is again up to Virtuemart. It is not using the SEF function on the search page. So turn to its developer to fix that in their code.
PROBLEM 1: It is Virtuemart that's doing this redirect. It is setting a cookie on first time visit. So I think it has nothing to do with SEF Advance. You can verify by disabling SEF Advance and check again.
PROBLEM 2: There is an option in SEF Advance "Redirect non-SEF URLs to SEF". If you set it to Yes it should redirect to clean URLs. However, note that this can cause problems for checkout in VM so if you experience that deactivate it.
PROBLEM 3: It is again up to Virtuemart. It is not using the SEF function on the search page. So turn to its developer to fix that in their code.
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.
- JohnnyJekyll
-
Topic Author
- Offline
- New Member
-
Less
More
- Thank you received: 0
14 years 10 months ago #5475
by JohnnyJekyll
Thanks for the reply Saka. To provide you with further feedback:
PROBLEM 1: When I disable SEF Advance, open a new browser, and type in www.mrskibbles.co.uk/ the problem believe it or not actually fixes itself - I get a clean URL for the home page (of course the categories and product pages get messy). Then when I turn SEF Advance back on the problem re-appears (but the categories and products become clean again). I agree with your cookie on first time visit comment because if I first go to www.mrskibbles.co.uk/ (where the url is messy), then I go to another website in the same browser, and then type in again www.mrskibbles.co.uk/ , the second time round the url is perfect. Any further ideas on how SEF Advance could be conflicting with something. Do remember that the Home page is set to Virtuemart which may be something to do with it?
PROBLEM 2: I already have “Redirect non-SEF URLs to SEF†turned on. Please don’t worry about this problem at the moment though. I was only interested in your comments on it. This problem won’t affect search engine optimization for me because the bots will of course travel along the links. My PROBLEM 1 above is far more important to get solved.
PROBLEM 3: I thought this might be the case.
PROBLEM 1: When I disable SEF Advance, open a new browser, and type in www.mrskibbles.co.uk/ the problem believe it or not actually fixes itself - I get a clean URL for the home page (of course the categories and product pages get messy). Then when I turn SEF Advance back on the problem re-appears (but the categories and products become clean again). I agree with your cookie on first time visit comment because if I first go to www.mrskibbles.co.uk/ (where the url is messy), then I go to another website in the same browser, and then type in again www.mrskibbles.co.uk/ , the second time round the url is perfect. Any further ideas on how SEF Advance could be conflicting with something. Do remember that the Home page is set to Virtuemart which may be something to do with it?
PROBLEM 2: I already have “Redirect non-SEF URLs to SEF†turned on. Please don’t worry about this problem at the moment though. I was only interested in your comments on it. This problem won’t affect search engine optimization for me because the bots will of course travel along the links. My PROBLEM 1 above is far more important to get solved.
PROBLEM 3: I thought this might be the case.
Please Log in or Create an account to join the conversation.
- Saka
-
- Offline
- Administrator
-
14 years 10 months ago #5477
by Saka
Emir Sakic
www.sakic.net
Yeah, I remember VM sets up a cookie on the first visit and redirects to that URL automatically. If you send me the admin password and FTP info I will check if there is some workaround for you.
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.
- JohnnyJekyll
-
Topic Author
- Offline
- New Member
-
Less
More
- Thank you received: 0
14 years 10 months ago #5478
by JohnnyJekyll
Thanks again for your prompt reply Saka. Your support is excellent.
Rather than bothering you on this any further, I will first take your advice and try to find a workaround with a friend of mine who is far more advanced than me at coding, so that we know exactly what to do in future on this.
If we are successful I will post my findings on this post as a reference point for you and others.
If we are not successful, then I will ask if you would be able to take a look.
I will post again Thursday next week with my findings. Thanks.
Rather than bothering you on this any further, I will first take your advice and try to find a workaround with a friend of mine who is far more advanced than me at coding, so that we know exactly what to do in future on this.
If we are successful I will post my findings on this post as a reference point for you and others.
If we are not successful, then I will ask if you would be able to take a look.
I will post again Thursday next week with my findings. Thanks.
Please Log in or Create an account to join the conversation.
- JohnnyJekyll
-
Topic Author
- Offline
- New Member
-
Less
More
- Thank you received: 0
14 years 9 months ago - 14 years 9 months ago #5500
by JohnnyJekyll
Sorry for posting results a few days later than planned,
After looking into the problem of Virtuemart setting a cookie on first visit which redirects automatically to a messy URL (as discussed above), we could only find the following work around.
We have hacked the Virtuemart code and removed the actual cookie check here - public_html / administrator / components / com_virtuemart / classes / ps_session.php – We have commented out line 100 which removes cookie checking from the site.
This of course means that if a user visits the site with cookies disabled on their computer, the site will not tell them to enable cookies – and as a result the cart will not hold products that have been added.
Please note that the aim of this website is to rank well on Google for specific search terms because it is an online shop, so clean urls take preference over the minimal number of users who would have cookies disabled.
It should also be noted that most of the users who understand to - and decide to - disable their cookies possess the knowledge to enable them when experiencing cookie related problems on sites.
A comment below for Saka
Would you be willing to have a look at standard versions of Virtuemart and SEF Advance to see if there is a work around for this problem – and post your results here? I believe that this may come up in the future for several SEF Advance users, so it would be a great reference. And I will certainly add your functionality if you do find a work around that is indeed better than our hack.
Also Saka, I have found two other bugs (one of which is very important) when using SEF Advance with Virtuemart, but I will post them separately to this problem to try and keep your forum organised. See you over there.
Thanks,
John
After looking into the problem of Virtuemart setting a cookie on first visit which redirects automatically to a messy URL (as discussed above), we could only find the following work around.
We have hacked the Virtuemart code and removed the actual cookie check here - public_html / administrator / components / com_virtuemart / classes / ps_session.php – We have commented out line 100 which removes cookie checking from the site.
This of course means that if a user visits the site with cookies disabled on their computer, the site will not tell them to enable cookies – and as a result the cart will not hold products that have been added.
Please note that the aim of this website is to rank well on Google for specific search terms because it is an online shop, so clean urls take preference over the minimal number of users who would have cookies disabled.
It should also be noted that most of the users who understand to - and decide to - disable their cookies possess the knowledge to enable them when experiencing cookie related problems on sites.
A comment below for Saka
Would you be willing to have a look at standard versions of Virtuemart and SEF Advance to see if there is a work around for this problem – and post your results here? I believe that this may come up in the future for several SEF Advance users, so it would be a great reference. And I will certainly add your functionality if you do find a work around that is indeed better than our hack.
Also Saka, I have found two other bugs (one of which is very important) when using SEF Advance with Virtuemart, but I will post them separately to this problem to try and keep your forum organised. See you over there.
Thanks,
John
Last Edit: 14 years 9 months ago by JohnnyJekyll.
Please Log in or Create an account to join the conversation.
- Saka
-
- Offline
- Administrator
-
14 years 9 months ago #5547
by Saka
Emir Sakic
www.sakic.net
You should turn OFF "Redirect non-SEF URLs" in SEF Advance admin as this feature can cause problems with VM. VM still uses many non-SEF URLs. Possibly you should turn off other redirects too and see if it helps.
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.