Hi all,

I am using prototype's javascript library to do ajax based functions. I have used Ajax.Request function for almost all the http get/post requests and I use relative path to submit to the scripts (ex: Ajax.Request(create.php) and not Ajax.Request('http://www.mysite.com/create.php') ). It was working fine till now. Today, I decided to do a MOD REWRITE on my server
and so that people can access my pages like http://www.mysite.com/product/skincare. This would internally point to http://www.mysite.com/index.php?product=skincare. In this page, I list all my products and each product is linked to productdetails.php.

my project scripts
----------------------------
index.php
productdetails.php

But this has created havoc on my path configuration as the server tries to find the productdetails.php script under 'product' directory but in reality no such directory exists. I tried doing a quick fix here by adding BASE HREF to my html <head> tag. This has fixed problems including stylesheets and scripts but Ajax scripts are not working anymore. What am I doing wrong here?


Cheers,
Celia