Wordpress Ajax deeplink gives 404 -


hi folks,

my first post here, got throught reading before.

i working on wordpress projekt. , seems missing overview on problem. use ajax recieve additional product data. http:url/product/additional_ajax_data...

this works fine, except direct call of ajax urls. direct call of ajax url gives 404 not found.

please dont give instructions like: add 200 ok header... cause project consist of thousand pages , work arounds no go...

aditional infos: urls have no ajax hash tag... , content dynamicly loaded depending on last url fragment

i found solution:

to prevent wordpress of 404 when calling ajax url directly, add rewrite endpoints system.

you can follow post jon cave on wordpress:

http://make.wordpress.org/plugins/2012/06/07/rewrite-endpoints-api/

works on custom post_types , custom taxonomys, keep eye on type wich want register custom endpoint rewrite (that may depends on options post type, page type etc...).

if sure url correct , file there, check if permissions on file not strict. check .htaccess make sure doesn't black file extensions loaded directly


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -