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
Completion of the website on Ocstore 3
16 USD
Ocstore 3 Template Upstore Fix some issues https://docs.google.com/document/d/1-TmTo3lh_ElFjPMQCGs2sVCsVSzq-V-Z/edit?usp=sharing&ouid=105344407605205919725&rtpof=true&sd=true I look forward to your proposals PHP, Web Programming ∙ 2 hours 30 minutes back ∙ 42 proposals |
A developer is needed to complete and integrate a project for automatic data collection and processing.
16 USD
The main part of the parser has already been implemented. The parser works in a Windows environment through Microsoft Edge: the site has anti-bot protection, so data collection is performed not through direct HTTP requests, but through a live browser session. The scripts control… PHP, Web Programming ∙ 4 hours 46 minutes back ∙ 18 proposals |
Updating plugins and themes for the WP site putevka.uz"A technical audit of the WordPress site needs to be conducted, checking the relevance, security, and compatibility of the installed plugins and theme. Based on the results, legal options for updating, replacing outdated solutions, or transitioning to officially available… HTML & CSS, PHP ∙ 7 hours 23 minutes back ∙ 31 proposals |
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 ∙ 21 hours 47 minutes back ∙ 36 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 ∙ 1 day 1 hour back ∙ 38 proposals |