I have a wordpress site and you want to load my pages using jquery. I want to load div content, so I pass this url like this:
var url = $(this).attr('href') + "#content";
Now when I try to load the page using ajax, it loads the url without the #content part. Now it loads the full page into my div, and not just the part that I want.
Maybe this has something to do with my .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(index\.php/?|intro.html)$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Any ideas?
source
share