Deal all, I wonder if someone has an idea concerning the pretty URLs architecture:
I am finishing a website furbished with the cool Couch CMS (admin backend, galleries, blog section). I have pretty URLs set up on a testing site (mytestingdomain.xx/folder/), all the relevant links prefixed with the "<cms:show k_site_link />", so far so good, everything looks fine. Now, there is a phpmailer script processing a product configurator form (I was not able to do the styling with the Couch native form the way I wanted it plus some other custom features), which fails to work with the pretty URLs on.
The trouble seems to be that there is a javascript (<script src="<cms:show k_site_link />form/js/jquery.form.js"></script>), which contains a reference to another script (url : '/form/mailer/owner.php' ,). With the pretty URLs activated, this link within the .js seems to lose its target. It works as expected if I use the full path (url : 'http://www.mytestingdomain.xx/folder/form/mailer/owner.php' ,) but not with the relative path.
The full path to the ,php file obviously is something I can live with so it is no big issue, I will also do some ore more tinkering with the RewriteBase in .htaccess and the site path in the config.php to look for the right combination or test it in a root folder directly ... but a solution may be helpful for more grave cases, so if there was a quck hint you can give from the top of your heads...
Thanks and Regards
MiB
I am finishing a website furbished with the cool Couch CMS (admin backend, galleries, blog section). I have pretty URLs set up on a testing site (mytestingdomain.xx/folder/), all the relevant links prefixed with the "<cms:show k_site_link />", so far so good, everything looks fine. Now, there is a phpmailer script processing a product configurator form (I was not able to do the styling with the Couch native form the way I wanted it plus some other custom features), which fails to work with the pretty URLs on.
The trouble seems to be that there is a javascript (<script src="<cms:show k_site_link />form/js/jquery.form.js"></script>), which contains a reference to another script (url : '/form/mailer/owner.php' ,). With the pretty URLs activated, this link within the .js seems to lose its target. It works as expected if I use the full path (url : 'http://www.mytestingdomain.xx/folder/form/mailer/owner.php' ,) but not with the relative path.
The full path to the ,php file obviously is something I can live with so it is no big issue, I will also do some ore more tinkering with the RewriteBase in .htaccess and the site path in the config.php to look for the right combination or test it in a root folder directly ... but a solution may be helpful for more grave cases, so if there was a quck hint you can give from the top of your heads...
Thanks and Regards
MiB