I try to understand how work the cookie less domain for WordPress.
I understand I need to create a subdomain or a domain and set the “home” of this domain to the folder wp-content of my wordpress.
But if I changed my folder media for another folder than wp-content, how can I configure this folder to be in the cookieless domain?
Thank you for your support.
Best
]]>Step 1: Create a subdomain using cPanel or any other panel for the static content
You will now be able to open static.domainname.com and see a blank page
IMPORTANT: Test to make sure that your static address is loading – e.g. https://static.domainname.com (or https if you use it). DO NOT PROGRESS UNTIL THIS LOADS — you will see a blank page when it is working correctly.
Note: it takes time for new subdomains to be available. Typically it takes about 10 minutes, but can take up to 24 hours depending on how you access the Internet. If you’re having problems accessing the subdomain, try from another Internet connection or using an online tool such as Pingdom Tools.
Step 2: Configure WordPress
Using your preferred method, for example FTP or through the cPanel, navigate to the root directory of your WordPress installation and edit wp-config.php
Add the following lines to the top of the file, below the <?php
Replace domainname with the domain name for your website
define("WP_CONTENT_URL", "https://static.domainname.com");
define("COOKIE_DOMAIN", "www.domainname.com");
define("WP_PLUGIN_URL", "https://static.domainname.com/plugins");
]]>
Thank you for starting the explanation but your reply seems not complete.
How can I do if my media folder is not in the wp-content?
Best Regards
]]>Here is quick help for you where you can find how to make cooking less domain which is not part of wp-content
]]>what do i oversee, who make the login possible ?
in the log file i see nothing, not even the login requests. Anyone any idea ?
thanks
Dieter
it says, if your system let’s assume is configured as https://www.domain.com than you need following settings.
define(“WP_CONTENT_URL”, “https://static.domain.com”);
define(“COOKIE_DOMAIN”, “domain.com”);
BTW: the wp_plugin_url settings seems to have no effect
]]>what do i overlook ?
i tried everything like setting it to my https://www.doamin.com or domain.com
nothing worked
]]>@dhovorka I recommend you to create a new post for your trouble, it will be better for everyone ??
]]>