I test my website on gtmetrix.com it show me the following error to improve my website yslow scrore.
serve static content from a cookieless domain
how to solve this error?
Related
anyone here who has knowledge in drupal. I've set up .htaccess file for https redirection but now I have problems with images on my website. On almost all images there is http link not https .
Is there any general settings?
Web pages are: https://www.gostol-tst.eu/ and https://www.irsmartwheel.eu/ they both run on a same server.
Thanks for answers, Ivan
My site got hacked and cloned multiple times. Now if i post anything its get updated on all cloned sites. Can i use some code in such a way that if a user visits a cloned site, he is redirected to original one. Any modification in theme or htaccess file which could do the job. Any help would be
appreciated.
I am using WordPress on shared hosting. My site is dlsoftfree.com and mirror sites are
zoodsabt.com
Thanks
How do you know it was a hacker and not a web crawling ?
Try a Javascript code in the middle of your article.
<script>
//replace 'example.com' for your domain
if(! /^http[s]?:\/\/example.com\//.test(window.location.href)){
var url = window.location.href.replace(/^http[s]?:\/\/([^:\/\s]+)(\w+)+\//, "http://example.com/");
window.location.replace(url);
}
</script>
there is most probable a shell on the server a php file which they can go to via the browser which will give them access to any file on your server change your ftp info, your hosting login info, check all your files for different files which are not ment to be there.Your site is also linked to another when you click the posts it forwards you to another website.
I have deployed a Ghost blog on heroku. The app has the url app.herokuapp.com. I have setup a custom domain to point to this mydomain.com.
Things work fine in normal access conditions. However, when the user hits a 404 page mydomain.com/xyz, it takes me to the 404 page and then there is a link to the front page.
A click on this link leads me to the heroku app url(app.herokuapp.com) rather than my custom url(mydomain.com).
Please let me know how do I point it to the front page of my custom domain mydomain.com
You can serve a custom error page on Heroku, and you can point it anywhere you'd like.
https://devcenter.heroku.com/articles/error-pages
I moved my live site in the localhost. Website was developed in CMS which is Magento. Now I don't know how to edit it or further develop the website. I have Magento installed on my localhost.
Problem 1. website does not work on local-host. but the first page
only, all the other pages shows missing 404.
Problem 2. How do I develop magento website offline on local-host?
website does not work on local-host. but the first page only, all the other pages shows missing 404.
The most likely cause of this is your localhost webserver does not (if it's apache) have mod_rewrite enabled.
Problem 2. How do I develop magento website offline on local-host?
You develop it by editing its files!
I was trying to solve the problem with cookie-free, the yslow has suggested to create a subdomain. I did, but the yslow still "show" the problem.
i didn't set the cookie´s domain in the page, cause i don't know how to do it.
anyone know a tutorial or a solution to this problem?
Create a subdomain such as static.yourwebsite.com which is where you will deliver all your static files from.
Point your new subdomain to the /wp-content directory for a WordPress installation.
For cPanel users, you will need to update the document root field from public_html/static to public_html/wp-content like the screenshot below. cpanel document root
Edit your config.php file to reflect the following:
define("WP_CONTENT_URL", "http://static.yourwebsite.com");
define("COOKIE_DOMAIN", "www.yourwebsite.com");
Now that your cookie domain and static content subdomain are set, you can begin delivering static content without the server setting an unnecessary cookie for static assets.
https://www.keycdn.com/support/how-to-use-cookie-free-domains/
To work around this problem, make sure that static components are requested with cookie-free requests by creating a subdomain and hosting them there.
If your domain is www.example.org, you can host your static components on static.example.org. However, if you've already set cookies on the top-level domain example.org as opposed to www.example.org, then all the requests to static.example.org will include those cookies.
In this case, you can buy a whole new domain, host your static components there, and keep this domain cookie-free.
Yahoo! uses yimg.com, YouTube uses ytimg.com, Amazon uses images-amazon.com and so on.
Read More
Serve static content from a different domain to avoid unnecessary cookie traffic.
When the browser requests a static image and sends cookies with the request, the server ignores the cookies. These cookies are unnecessary network traffic.
Move all your static content on a different domain, where no cookies
are set.
Move your static content on a different sub domain and set
all the cookies to the www subdomain.