{"id":7706,"date":"2020-10-23T10:49:33","date_gmt":"2020-10-23T08:49:33","guid":{"rendered":"https:\/\/assistance.groupemagiconline.com\/?post_type=ht_kb&#038;p=7706"},"modified":"2022-07-12T11:45:57","modified_gmt":"2022-07-12T09:45:57","slug":"wordpress-et-les-fichiers-htaccess","status":"publish","type":"ht_kb","link":"https:\/\/assistance.groupemagiconline.com\/en\/knowledge-base\/wordpress-et-les-fichiers-htaccess\/","title":{"rendered":"WordPress and .htaccess files"},"content":{"rendered":"<p>The use of an .htaccess file is not possible, because it is incompatible with our NGINX servers.<\/p>\n<p>.htaccess files (and more broadly, files beginning with a dot) are indeed used on Apache, LiteSpeed and other servers. But on a NGINX server, there are other alternatives.<\/p>\n<h2>What is an .htaccess file?<\/h2>\n<p>This is a special file (starting with a dot) in which you can add specific directives like. You can read more about <a href=\"https:\/\/assistance.groupemagiconline.com\/en\/knowledge-base\/fichier-htaccess\/\" target=\"_blank\" rel=\"noopener noreferrer\">this article<\/a>.<\/p>\n<h2>How to do it?<\/h2>\n<p>If you need to perform redirects, you can simply use the very powerful \"Redirect\" plugin, you can find it at <a href=\"https:\/\/fr.wordpress.org\/plugins\/redirection\/\" target=\"_blank\" rel=\"noopener noreferrer\">this address<\/a>.<\/p>\n<p>Concerning the cache, the plugins we recommend (W3 Total Cache and WP-Rocket, see our article on <a href=\"https:\/\/assistance.groupemagiconline.com\/en\/knowledge-base\/optimiser-wordpress-avec-nginx\/\" target=\"_blank\" rel=\"noopener noreferrer\">Varnish optimization<\/a>) handle a site without an .htaccess file very well. So you don't have to do anything else than activate the right settings via your WordPress administration interface.<\/p>\n<p>If you want to add other redirections or rules that can not be managed by this plugin, please contact us <a href=\"https:\/\/assistance.groupemagiconline.com\/en\/knowledge-base\/creer-un-ticket-support\/\" target=\"_blank\" rel=\"noopener noreferrer\">per ticket<\/a> and send them to us so we can add them for you.<\/p>\n<h2>Want a secure WordPress?<\/h2>\n<p>We take effective measures to improve the security of your WordPress site. That's why every time we deploy a new WordPress we perform the following optimizations:<\/p>\n<h3>SECURE LOGIN<\/h3>\n<p>We create for you a login and a secure password for your Admin account.<\/p>\n<h3>URL LOGIN &amp; WP ADMIN<\/h3>\n<p>We change the login and wp-admin URLs that are often used for Brute Force attacks.<\/p>\n<h3>LIMIT LOGIN<\/h3>\n<p>We limit the number of login attempts to protect your Admin account.<\/p>\n<h3>NO HOTLINK<\/h3>\n<p>We apply a direct restriction from our server to protect your site from hotlinking and preserve the bandwidth allocated to it.<\/p>\n<h3>CONSTANT MONITORING<\/h3>\n<p>We carry out a permanent watch against malicious code on your site and protect you against DDOS attacks.<\/p>\n<h3>PROTECTION<\/h3>\n<p>We protect your site's files and folders by blocking navigation in your WordPress folders. Access rights are adjusted accordingly.<\/p>\n<h3>MASKED<\/h3>\n<p>We hide in the code the version of your WordPress, because it gives information to hackers to find possible security holes.<\/p>\n<h3>PREFIX WP<\/h3>\n<p>We change the default prefix \"WP_\" of the tables in the MYSQL database. Indeed, this prefix \"_WP\" is known by all and can be vulnerable in case of injection.<\/p>\n<h3>USER ID<\/h3>\n<p>We change the default User ID of the first user. Indeed, the ID 1 is known by everyone and is often searched\/attacked by hackers.<\/p>\n<h3>CONNECTION ERRORS<\/h3>\n<p>We hide the connection errors because WordPress returns a message that is far too explicit in case of connection problems.<\/p>\n<h3>FILE EDITOR<\/h3>\n<p>We disable the internal file editor of WordPress. To edit your files, you will just have to use your FTP software.<\/p>\n<h3>SECURITY WATCH<\/h3>\n<p>We keep a daily watch on the main WordPress security flaws and inform you directly by newsletter of the most critical ones.<\/p>\n<h3>AND THAT'S NOT ALL<\/h3>\n<p>Server-side measures are also in place, proactive file scanning with immediate quarantine of suspicious files, and a few others that we are keeping secret.<\/p>","protected":false},"excerpt":{"rendered":"<p>The use of an .htaccess file is not possible, because it is incompatible with our NGINX servers. .htaccess files (and more broadly, files beginning with a dot) are indeed used on Apache, LiteSpeed and other servers. But on a NGINX server, there are other alternatives. What is...<\/p>","protected":false},"author":52,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[1246],"ht-kb-tag":[],"class_list":["post-7706","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-hebergements-cloud-evolution"],"_links":{"self":[{"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb\/7706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/comments?post=7706"}],"version-history":[{"count":0,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb\/7706\/revisions"}],"wp:attachment":[{"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/media?parent=7706"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=7706"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=7706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}