浏览器认为它正在发出跨域请求,但事实并非如此?

I have a fairly have project up and running online, using the codeigniter framework. The project is deployed on my server on AWS. In a aws, it's stored under: /var/www/html/gitprojects/purimproject I didn't want everyone to have to type http://urlname.com/gitprojects/purimproject so I changed the httpd.conf so that the base url is under gitprojects, so now you access purim project by doing http://urlname.com/purimproject. When I did this, the whole system broke as suddenly the browser could not make AJAX calls to my api (on the same server, which had worked previously), saying they were cross origin requests, although they're not. It's trying to post from http://urlname.com to http://urlname.com/purimproject/index.php/controllername , but this isn't working. Any idea what could have possibly changed?