nxtlogic
nxtlogic asked
Member (0 upvotes)

Keep - Alive Connection Not Detected?

Hi


I assign the keep-alive comment in htaccss file but it is not detected in my website. Kindly help out ]


nxtproject.com


(Edited to remove live link)

Avatar for member KnowOneSpecial
KnowOneSpecial
Moderator (61 upvotes)

Ok, after looking at your htaccess file, It is probably your httpd configuration file.

Let me explain....

There is a setting that will over-ride the htaccess file.  It is located in the  httpd.conf.  If you're on shared hosting then you will not have access to this file. I recommend you contact your Hosting provider if you are on shared hosting and have them correct the setting.  

Otherwise you can correct the setting if you're on a vps or ded server

File to edit: htttpd.conf

The entry you need to edit is:

KeepAlive  On  --- to enable
KeepAlive Off  --- to disable

Good advice?
1
0
Comments 0
login to reply
Avatar for member KnowOneSpecial
KnowOneSpecial
Moderator (61 upvotes)

Let's start by taking a look at your htaccess file.

Kindly post in open forums or by pm.

You will get more answers by posting in open forum, just saying...

Good advice?
0
0
Comments 0
login to reply
Hi Here i posted my .htaccess file, Kindly verify, if I do any correction kindly let me AddDefaultCharset UTF-8 # Extra Security Headers >IfModule mod_headers.c> Header set X-XSS-Protection "1 mode=block" Header always append X-Frame-Options SAMEORIGIN Header set X-Content-Type-Options nosniff Header set Connection keep-alive >/IfModule> RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTP_HOST} ^(.*)$ [NC] RewriteRule (.*) https://www.%1/$1 [R=301,L] RewriteRule ^index\.html?$ https://www.nxtproject.com/ [R=301,L] RewriteRule ^final-year-projects?$ final-year-projects.html [L] RewriteRule ^research-and-development?$ research-and-development.html [L] RewriteRule ^internship-inplant-training?$ internship-inplant-training.html [L] RewriteRule ^real-time-projects?$ real-time-projects.html [L] RewriteRule ^best-projects-center?$ best-projects-center.html [L] RewriteRule ^terms?$ terms.html [L] RewriteRule ^final-year/android-project-titles?$ final-year/android-project-titles.html [L] RewriteRule ^final-year/asp-net-project-titles?$ final-year/asp-net-project-titles.html [L] RewriteRule ^final-year/embedded-project-titles?$ final-year/embedded-project-titles.html [L] RewriteRule ^final-year/java-project-titles?$ final-year/java-project-titles.html [L] RewriteRule ^final-year/jsp-project-titles?$ final-year/jsp-project-titles.html [L] RewriteRule ^final-year/management-project-titles?$ final-year/management-project-titles.html [L] RewriteRule ^final-year/mechanical-project-titles?$ final-year/mechanical-project-titles.html [L] RewriteRule ^final-year/php-project-titles?$ final-year/php-project-titles.html [L] RewriteRule ^final-year/python-project-titles?$ final-year/python-project-titles.html [L] RewriteRule ^final-year/vb-net-project-titles?$ final-year/vb-net-project-titles.html [L] RewriteRule ^final-year-projects.aspx$ /final-year-projects [END,R=301] RewriteRule ^research-and-development.aspx$ /research-and-development [END,R=301] RewriteRule ^inplant-internship-training.aspx$ /internship-inplant-training [END,R=301] RewriteRule ^real-time-live-projects.aspx$ /real-time-projects [END,R=301] RewriteRule ^contactus.aspx$ /best-projects-center [END,R=301] RewriteRule ^ProjectTitle.aspx$ /final-year/asp-net-project-titles [END,R=301] RewriteRule ^sitemap?$ sitemap.xml [L] ErrorDocument 404 /404.shtml >IfModule mod_expires.c> ExpiresActive On Header set Access-Control-Allow-Origin * # Images ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/gif "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/webp "access plus 1 year" ExpiresByType image/svg+xml "access plus 1 year" ExpiresByType image/x-icon "access plus 1 year" # Video ExpiresByType video/mp4 "access plus 1 year" ExpiresByType video/mpeg "access plus 1 year" # CSS, JavaScript ExpiresByType text/css "access plus 1 month" ExpiresByType text/javascript "access plus 1 month" ExpiresByType application/javascript "access plus 1 month" # Others ExpiresByType application/pdf "access plus 1 month" ExpiresByType application/x-shockwave-flash "access plus 1 month" # Compress HTML, CSS, JavaScript, Text, XML and fonts AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/x-font-otf AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE font/opentype AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml # Remove browser bugs (only needed for really old browsers) BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent >/IfModule> #### Cache-Control >IfModule mod_headers.c> >FilesMatch "\\.(ico|jpe?g|png|gif|swf)$"> Header set Cache-Control "max-age=31536000, public" >/FilesMatch> >FilesMatch "\\.(css|js)$"> Header set Cache-Control "max-age=2628000, public" >/FilesMatch> >FilesMatch "\\.(x?html?|php|xml)$"> Header set Cache-Control "max-age=600, private, must-revalidate" >/FilesMatch> >/IfModule> # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php72” package as the default “PHP” programming language. >IfModule mime_module> AddHandler application/x-httpd-ea-php72___lsphp .php .php7 .phtml >/IfModule> # php -- END cPanel-generated handler, do not edit
Copyright ©2020 SEOChat. All Rights Reserved.