domain mapping on single site and cloudflare
-
Hi, I did a domain mapping on my single site, and I would need to know if this will still work after I connect my site with clouflare cdn. Thanks!
-
hy,
i have not tested it with cloudflare yet, but if you add all of your domains there i guess it should work without any problems, since cloudflare does only fetch the sites and deliver it from their servers…please report here if it works or you need any special configuration ??
matt
Hi, it works fine over http , but not in https where it returns a simplified html version of my website. I guess that is related to the same problem mentioned in another post about some code missing for ssl connections.
Also I have the problem with pagination mentioned in another post of this forum.
If you could fix these issues prior to the end of this year it would be great.
thanks
does it work when you disable cloudflare caching? you should always start with a minimum of potential sources for issues and then enable features step by step ??
if you enter the mappings correct and enable CORS then https is no problem. pagination is only affected when it comes to paginated pages/posts, but the post-overview pagination works well ??nevertheless, we hope too to find some time for the plugin in the next months ??
matt
Hi, thanks for your indications. Glad to know that it could work.
Could you please explain what you mean by ‘enter the mappings correct’? Should I follow a specific other or something?
And about enabling CORS, should I do it for the original http address or the https that is always overriden now?I send you a link to my website, so that you can see the type of pagination I have.
thank you!
according to faq/screenshots: first http, then https – version
CORS: just add
Header set Access-Control-Allow-Origin "*"
to your .htaccess file. this has nothing to do with ssl. (see https://enable-cors.org/server_apache.html)your gallery-pagination seems to work fine on this page? anyway, this is some ajax/javascript-pagination and has nothing to do with wordpress pagination ??
matt
Thank you! is enabling CORS as a wildcard somehow a security risk? could I be more specific about the domain/domains ?
we usually use this code. feel free to find the correct syntax to enable it only for some domains and share it here ??
unfortunately i can not answer this without further reading too.matt
Hi again, I did all mentioned in your answers, but now I get redirected to the original domain. I read that this could be caused by w3 super cache. Tried disabling minify but didn′t help. I also set cloudflare to bypass the cached version and make the request direct to my server.
Any ideas? seems that caching is not supporting well mapped domains.
thanks
hy,
have you also disabled your browser cache? that’s what causes wrong redirects sometimes as they are saved in the browser once they occur, no matter what settings you change server-side.
please post a screenshot of your settings for further help now ??Hi, I followed your instructions, and it did work! To enable CORS I used another plugin to limit to specific domains. It is also working with cloudflare and ssl.
The pagination problem is because of the galleries plugin I use, and I am already waiting for a response with any solution by its developer.thanks for your availability!
cheers!glad to hear ??
a positive review is always appreciated, as well as a small donation especially if you use it for commercial sites ??Hi, I am still trying to solve the AJAX pagination issue. The photo galleries wppa plugin developer said about this:
This is not a wppa issue, it is a redirect issue.
Make sure your wp settings
Settings->General->WordPress Address (URL) and
Settings->General->Site Address (URL) are correct, and install a permanent redirection on the server that redirects https://hyperirrealism.com/ always to https://hyper-irrealism.com/What do you think? If I make a permanent redirect I will just not get my domain mapped, right? Any ideas?
thank you
* i still do not know your problem with pagination. how should it work? how does it work?
* i still have no screenshot of your configuration
* yes you are right, a permanent redirect would lead to mappings not working anymoreHi, you can see at https://hyper-irrealism.com that pagination and galleries open on the same page that they are, via AJAX.
But on the mapped domain, https://hyperirrealism.com , when you click on pagination or on any gallery, they open on a new page instead of the same where they are. So AJAX is not working there.
My configuration is very simple, as I only have CORS, multiple domain on single site, and content security policy, all of them allowing my mapped domain ( hyperirrealism.com )
I have been searching around, and this article came across. Maybe you can understand it and hopefully could be useful:
https://zinoui.com/blog/cross-domain-ajax-request
thanks
i can not reproduce that. everything works exactly the same on both pages (chrome on mac).
further i do not understand what you try to achieve with this mapping. the plugin is intended to show a single page or post from wordpress within an own, mapped, domain. this is for seo-/marketing-purposes. what you are doing here is generate duplicate content.
i am not sure if your url-structure and javascript-driven navigation is even ready for all of this.
so you wish further support?
* read the description of this plugin and find out if it can help you achieve what you want
* find out if this is even good (duplicate content?)
* make a posting where you explain what you need help with exactly
* AND post a screenshot of your configurationmatt
- The topic ‘domain mapping on single site and cloudflare’ is closed to new replies.