Knowledgebase

Portal Home > Knowledgebase > Articles Database > will high traffic on HTACCESS affects serer?


will high traffic on HTACCESS affects serer?




Posted by vishnudath, 01-26-2014, 11:23 AM
i have a website and a sub domain.. the main website is hosted in server A and its sub domain in server B.. when i have high traffic i will redirect my main website to my sub domain. i am using htaccess in main website server to do this redirection... i will have 400 - 800 requests coming every second for server A (main website server, which contains the htaccess for redirection) actually the server canot manage those many requests if i am hosting my webbsite in that.. as i am using the htaccess file only in the server... will it affect server ?

Posted by NetworkPanda, 01-26-2014, 11:38 AM
A simple .htaccess file with only one redirect command to another server requires almost 0% CPU power, even with lots of traffic and redirects. So you shouldn't experience any issues, unless the server is more than 10 years old.

Posted by vishnudath, 01-26-2014, 12:23 PM
Ah! actually i might have around 100 redirection.. like this

Posted by vishnudath, 01-26-2014, 12:54 PM
will be there any change if i have 100 redirections... and will it be same if the main website is in Shares Hosting or in VPS hosting ? as i am using only htaccess

Posted by simon_enzu, 01-26-2014, 03:57 PM
I think it is simple to setup a round robin DNS for your domain. So that connections would be going to both the servers. Note that you should sync the files in both the servers. It is recommended to keep database on single server and second server should be using database server to access db details or else there is a chance for missing transactions.

Posted by NetworkPanda, 01-27-2014, 07:03 AM
100 rules shouldn't be a problem either. Apache can handle thousands of .htaccess rules without any significant CPU load.

Posted by foobic, 01-27-2014, 10:39 PM
If you have full access to the server it's better not to use .htaccess files at all (ideally disable .htaccess support completely) and put rewrite rules into the main config files instead. That way the file is read once on Apache startup and the rules are held in memory. Using .htaccess the entire directory tree must be checked and every .htaccess file read on every request. You should find though that you don't have high traffic on these redirects for very long - the whole point of a 301 (permanent) redirect is to get the search engines to update their results.

Posted by Kailash12, 01-28-2014, 03:02 AM
It should not affect to your server resources but it will affect your ranking in search engines.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
ASP & PHP Reseller (Views: 640)
Uptime Guarantee (Views: 520)


Language:

Contact us