Hello i have the following page:
1st site folder: www.site.com /www/www1/
2nd site folder: www2.site.com /www/www2/
Ajax Folder: /www/ajax/
CDN Folder: /www/cdn/
the www
and www2
site uses some ajax stuff, since i dont want to create a own ajax folder to each site, i want to use the same directory, what i want to do is the following:
I have my www
and www2
sites, each one must use the same ajax folder, im trying to create a virtual folder to each one that connects to my ajax folder.
So must be www.site.com/ajax/myfileajax.php?id=1
Also for www2.site.com/ajax/myfileajax.php?id=2
Im trying with .htaccess but no luck only a 404 error
RewriteRule /inc/^(.*) ../ajax/$1 [L]
I don't want to recode all my javascript for x-domain ajax that's why i want to do this.
My hosting provider can't edit the httpd.conf so this is my only chance with .htaccess.
I tried alias
too but don't work.