Target URL leads to 404 error, but works on actual site
I'm trying to set up experiments for a couple products on an ecommerce website, but everytime I enter the URL for a specific product in the "URL Targetting" field, the page shows up as a 404 error. I've tried using exact & simple match and the 404 consistently appears. I double checked that the URL link actually works on the live site and it does.
Here are the links I'm trying to run tests on:
(FYI, when I plug in the home page to the "URL Targetting" field, the content on the page appears, so it's not a problem with the actual site).
Any ideas why this is happening?
Might also be an issue with something in your head:
<html xmlns="http://www.w3.org/1999/xhtml" class="no-js" dir="ltr" lang="en" xml:lang="en">
It sounds like you are running into these issues within the Optimizely Editor, is that correct? In order to load your page in the Optimizely editor, there are two primary things that Optimizely needs to be able to do with the page:
1. Load the page within an iFrame
2. Add Query parameters to the page
In this case it appears that this site will show a 404-type page if there are any query parameters added to the URL. You should be able to reproduce this by going to http://goneshopping.ca/product/brand/klean-kanteen/black-eclipse-40oz.html?test=true
In order for this page to be able to load in the editor, it will need to allow additional parameters to be added to the page. If you or a colleague would like to see the exact parameters that Optimizely is using you can do so by viewing the Optimizely Loader object in the browser console after the editor page has loaded.
The article below has some additional information on other possible Editor loading issues with Optimizely as well.
Thanks for your help. We're still struggling with setting this up though. We're using 'Opencart' and it seems to be adding .html automatically.
Do you have any suggestions or plugins that we can download to fix this error?