enable keepalive on apache 301 redirect pages

enable keepalive on apache 301 redirect pages - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the enable keepalive on apache 301 redirect pages error on your web browser. Problem :


I want to make it so that every website on the server I manage (including my own website) will enable keep-alive on all (HTTP status 301) redirect pages including ones issued by apache modules.



This means when I try to get the headers of the page, I should see connection: keep-alive in the header.



Is there a special setting in apache I could use for this? using mod_rewrite would cause me to rescript all my rules but it wouldn't help with apache's mod_dir because someone trying to access a folder without the correct number of slashes will be redirected and mod_rewrite can't control that.


Solution :

you can try to add header



Header set Connection keep-alive 



Context: server config, virtual host, directory, .htaccess




Link to official doc : mod_headers


We hope that this article has helped you resolve the redirects, 301-redirect, mod-rewrite error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

Redirected urls show in serp, with the original permalink but with the title and meta of the target page

How can I redirect everything but the index as 410?

How do I redirect traffic only if being accessed from a specific port?