Hello,
I’m working on developing a PHP MySQL CMS framework that I can use for websites. It’s been going well so far until I hit a snag using AJAX yesterday.
Basically, I have an template.php file that does all the work. I use .htaccess to always redirect to the template file. The template checks to see if the page exists, then includes that page or an error page inside of the html head and footer, I think this is pretty standard.
here is my .htaccess file:
[CODE]
ErrorDocument 404 /pages/error_page.php
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ template.php [nc]
The problem is when I am calling CSS, JS, or AJAX files. It puts the header and footer content around the CSS file, so I get an error. Is there a way that I can say in the .htacess that if the URL is [url]http://www.mysite.com/contact_us.php[url]http://www.mysite.com/ajax/getAddress.php
Any suggestions would be helpful.