Is this slowing my server down?

I am on godaddy and all my websites load fast except the one that suppose to go into public_html folder.

I am using this code to redirect root main directory to a sub-folder.

The files suppose to go inside the public_html folder but I have them inside other folder and I use this code to redirect:

# .htaccess main domain to subdirectory redirect 
# Do not change this line. 
RewriteEngine on 
# Change example.com to be your main domain. 
RewriteCond %{HTTP_HOST} ^(www.)?example.com$ 
# Change 'subdirectory' to be the directory you will use for your main domain. 
RewriteCond %{REQUEST_URI} !^/subdirectory/ 
# Don't change the following two lines. 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
# Change 'subdirectory' to be the directory you will use for your main domain. 
RewriteRule ^(.*)$ /subdirectory/$1 
# Change example.com to be your main domain again. 
# Change 'subdirectory' to be the directory you will use for your main domain 
# followed by / then the main file for your site, index.php, index.html, etc. 
RewriteCond %{HTTP_HOST} ^(www.)?example.com$ 
RewriteRule ^(/)?$ subdirectory/index.html

I think this cases the server to become slow and increase Time to first byte.

What do you think?

Not sure but that might be creating loop you can test it on pingdom loops can be detected here http://tools.pingdom.com/fpt/

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.