Configuring .htaccess
It is necessary for Yandex bots and Google bots to see robots and favicon.ico
And also correctly worked re-addressing from www to without www, and c http to https.The problem is that the junk bots do not see and issue ERR_TOO_MANY_REDIRECTS
Google says a cycle of redirect is going on.You need to do it remotely, without access (ready to test in real time or TV)
My current htaccess RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^( .*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Options + FollowSymLinks
RewriteCond %{HTTP_HOST} ^www.site.com
The RewriteRule (.*) HTTPS://site.com/$1 [R=301,L]
ErrorDocument 404 /404.htm
DirectoryIndex index.html index.htm index.php
ExpiresActive on
Cache for 5 seconds
ExpiresDefault “access plus 5 seconds”
Cash flash and images for a month
#ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType image/jpeg "access plus 4 weeks"
ExpiresByType image/png "access plus 30 days"
ExpiresByType image/gif "access plus 43829 minutes"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
We cache CSS, JavaScript and text files for a week
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
ExpiresByType application/x-javascript "access plus 604800 seconds"
We cache HTML and HTM files for one day
ExpiresByType text/html "access plus 43200 seconds"
Cache XML files for 10 minutes
ExpiresByType application/xhtml+xml “access plus 600 seconds”
The RewriteRule.* [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}]
The RewriteRule.* [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}]
-
I write, I write, I write, I write, I write, I write, I write, I write, I write, I write, I write, I write, I write.
-
553 107 0 - - - - - - - - - - - - - - - - - - - - -
Hi, I will do, telegram: @noparamos
- - - - - - - - - - - - - - - - - -
-
Могу сделать, 15 минут
-
Напишите в ЛС ссылку на сайт, пожалуйста.
-
Current freelance projects in the category PHP
Integration of the "Where to Watch" block (Laravel / Livewire)It is necessary to implement the integration of an external streaming platform for a website about movies and series on Laravel / Livewire. What needs to be done: Implement the import of an external content catalog that is updated once a day. Match content by IMDb ID and/or TMDB… PHP, Web Programming ∙ 12 hours 4 minutes back ∙ 22 proposals |
Refinement of the existing project on Laravel (PHP)Need to refine an existing project on Laravel (PHP). The project includes a ready-made admin panel that has a builder inside it for creating pages through it with layout (html+css+js) using PHP code for data output. In the project, it is necessary to implement 2-3 pages based… Content Management Systems, PHP ∙ 15 hours 40 minutes back ∙ 31 proposals |
New store on Woocommerce
2314 USD
Looking for a developer to create an online store on Woocommerce. Project - a store for daily promotions, popular products in limited quantities. What is already available: layout of all pages (showcase, checkout, content pages, customer account), corporate identity, logo,… PHP, Web Programming ∙ 18 hours 1 minute back ∙ 92 proposals |
Need to make improvements on the Modx Evolution CMS 3.1.7 site.
22 USD
The design refinement and layout of the website are being developed, and these works will need to be implemented on the site.Also, some adjustments need to be implemented on the site. HTML & CSS, PHP ∙ 22 hours 6 minutes back ∙ 23 proposals |
Implementation of a technical SEO audit on OpenCartGood day. Need to implement technical SEO fixes on the site softugo.com. The site is already developed but not fully launched yet. Platform: ocStore 3.0.2.0 / OpenCart + custom code. Hosting: Hostinger. Current PHP version: 7.3. (transition to PHP 8.2 is planned) A checklist… PHP, Web Programming ∙ 1 day 19 hours back ∙ 58 proposals |