jkewlo Posted January 21, 2009 Share Posted January 21, 2009 hey everyone I need some advice, my site is super slow http://www.eve-lounge.com and I am thinking it has something to do with my .htaccess I am required to use it on my host and if I do not put any of my webpages within it then they will not show and get directed back to the index page. if you could please look at my .htaccess and tell me what is wrong and or why it is running so slow thanks alot .htaccess ErrorDocument 403 /403/403.php ErrorDocument 404 /404/404.php RewriteEngine On RewriteCond %{REQUEST_URI} !^/img/.* RewriteRule ^index.php(/.*)$ /index.php?do=$1 [L] RewriteCond %{REQUEST_URI} !^/img/.* RewriteCond %{REQUEST_URI} !^/CSS/.* RewriteCond %{REQUEST_URI} !^/img/flash/.* RewriteCond %{REQUEST_URI} !^/Data/.* RewriteCond %{REQUEST_URI} !^/Script/.* RewriteCond %{REQUEST_URI} !^/Mod/.* RewriteCond %{REQUEST_URI} !^/JS/.* RewriteCond %{REQUEST_URI} !^/Mod/.* RewriteCond %{REQUEST_URI} !^/Ajax/.* RewriteCond %{REQUEST_URI} !^/ext/Yapeal/backend/eve-api-pull.php.* RewriteCond %{REQUEST_URI} !^/chat.php RewriteCond %{REQUEST_URI} !^/Vanessa.php RewriteCond %{REQUEST_URI} !^/login.php RewriteCond %{REQUEST_URI} !^/getChat.php RewriteCond %{REQUEST_URI} !^/database.php RewriteCond %{REQUEST_URI} !^/editusers.php RewriteCond %{REQUEST_URI} !^/editnews.php RewriteCond %{REQUEST_URI} !^/addnews.php RewriteCond %{REQUEST_URI} !^/CharacterSheet3c183ec5aa442b089b14a186be0c9f537e4a1dc6.xml RewriteCond %{REQUEST_URI} !^/index.php RewriteCond %{REQUEST_URI} !^/admin.php RewriteCond %{REQUEST_URI} !^/addapi.php RewriteCond %{REQUEST_URI} !^/eveskills.php RewriteCond %{REQUEST_URI} !^/skill_info.php RewriteCond %{REQUEST_URI} !^/check.php RewriteCond %{REQUEST_URI} !^/everaces.php RewriteCond %{REQUEST_URI} !^/check.php RewriteCond %{REQUEST_URI} !^/evemap.php RewriteCond %{REQUEST_URI} !^/evestations.php RewriteCond %{REQUEST_URI} !^/killboard.php RewriteCond %{REQUEST_URI} !^/logout.php RewriteCond %{REQUEST_URI} !^/mail.php RewriteCond %{REQUEST_URI} !^/member.php RewriteCond %{REQUEST_URI} !^/myaccount.php RewriteCond %{REQUEST_URI} !^/mycorporation.php RewriteCond %{REQUEST_URI} !^/myskills.php RewriteCond %{REQUEST_URI} !^/playersonline.php RewriteCond %{REQUEST_URI} !^/regadd.php RewriteCond %{REQUEST_URI} !^/register.php RewriteCond %{REQUEST_URI} !^/show_race.php RewriteCond %{REQUEST_URI} !^/show_system.php RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteRule ^(.*)$ /index.php?do=/$1 [L] Quote Link to comment https://forums.phpfreaks.com/topic/141718-htaccess-help/ Share on other sites More sharing options...
jkewlo Posted January 21, 2009 Author Share Posted January 21, 2009 no one can help me Quote Link to comment https://forums.phpfreaks.com/topic/141718-htaccess-help/#findComment-742278 Share on other sites More sharing options...
corbin Posted January 21, 2009 Share Posted January 21, 2009 Instead of all of those RewriteConds, you could just check if the file/folder exists. RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f Aside from that, I don't see anyways to speed up your rewrites. I don't think that's the cause of the slowness though. Quote Link to comment https://forums.phpfreaks.com/topic/141718-htaccess-help/#findComment-742691 Share on other sites More sharing options...
jkewlo Posted January 22, 2009 Author Share Posted January 22, 2009 yeah i dont get it, it is being a pain in the arse >.< i dont get it im on the same host as mmoreactor.com same account and that site is way faster Quote Link to comment https://forums.phpfreaks.com/topic/141718-htaccess-help/#findComment-742813 Share on other sites More sharing options...
corbin Posted January 22, 2009 Share Posted January 22, 2009 Is there a specific page that's slow? Quote Link to comment https://forums.phpfreaks.com/topic/141718-htaccess-help/#findComment-742893 Share on other sites More sharing options...
jkewlo Posted January 22, 2009 Author Share Posted January 22, 2009 all of them takes well over 30 seconds to load. http://www.eve-lounge.com Quote Link to comment https://forums.phpfreaks.com/topic/141718-htaccess-help/#findComment-742913 Share on other sites More sharing options...
corbin Posted January 22, 2009 Share Posted January 22, 2009 That's weird.... On the very first load, it's almost instant. Then it's slow as hell. It's some code in there somewhere. Code included on every page it would seem. To test that it's coding somewhere, you could put a static page and try to get it while everything is slow. Quote Link to comment https://forums.phpfreaks.com/topic/141718-htaccess-help/#findComment-742951 Share on other sites More sharing options...
jkewlo Posted January 22, 2009 Author Share Posted January 22, 2009 Yeah I was thinking that maybe it has something to do with connecting to a socket from Eve-Online.com they said that they would change it. so maybe that is it let me take it out and see, but I would like to make it so that I dont have to add everypage into my .htaccess it would make my life easier Quote Link to comment https://forums.phpfreaks.com/topic/141718-htaccess-help/#findComment-742987 Share on other sites More sharing options...
jkewlo Posted January 22, 2009 Author Share Posted January 22, 2009 Found out what it was, it was the Socket connection to the Eve Site that was slowing it down it is 1000000 times faster thanks Quote Link to comment https://forums.phpfreaks.com/topic/141718-htaccess-help/#findComment-742993 Share on other sites More sharing options...
corbin Posted January 22, 2009 Share Posted January 22, 2009 No problem, and if you do what I said earlier with checking if files/directories exist, you won't have to hand list every exception. Quote Link to comment https://forums.phpfreaks.com/topic/141718-htaccess-help/#findComment-743775 Share on other sites More sharing options...
jkewlo Posted January 23, 2009 Author Share Posted January 23, 2009 so where would i put this at i have never messed with .htaccess before. RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f ErrorDocument 403 /403/403.php ErrorDocument 404 /404/404.php RewriteEngine On RewriteCond %{REQUEST_URI} !^/img/.* RewriteRule ^index.php(/.*)$ /index.php?do=$1 [L] RewriteCond %{REQUEST_URI} !^/img/.* RewriteCond %{REQUEST_URI} !^/CSS/.* RewriteCond %{REQUEST_URI} !^/img/flash/.* RewriteCond %{REQUEST_URI} !^/Data/.* RewriteCond %{REQUEST_URI} !^/Script/.* RewriteCond %{REQUEST_URI} !^/Mod/.* RewriteCond %{REQUEST_URI} !^/JS/.* RewriteCond %{REQUEST_URI} !^/Mod/.* RewriteCond %{REQUEST_URI} !^/Ajax/.* RewriteCond %{REQUEST_URI} !^/ext/Yapeal/backend/eve-api-pull.php.* RewriteCond %{REQUEST_URI} !^/chat.php RewriteCond %{REQUEST_URI} !^/Vanessa.php RewriteCond %{REQUEST_URI} !^/login.php RewriteCond %{REQUEST_URI} !^/getChat.php RewriteCond %{REQUEST_URI} !^/database.php RewriteCond %{REQUEST_URI} !^/editusers.php RewriteCond %{REQUEST_URI} !^/editnews.php RewriteCond %{REQUEST_URI} !^/addnews.php RewriteCond %{REQUEST_URI} !^/CharacterSheet3c183ec5aa442b089b14a186be0c9f537e4a1dc6.xml RewriteCond %{REQUEST_URI} !^/index.php RewriteCond %{REQUEST_URI} !^/admin.php RewriteCond %{REQUEST_URI} !^/addapi.php RewriteCond %{REQUEST_URI} !^/eveskills.php RewriteCond %{REQUEST_URI} !^/skill_info.php RewriteCond %{REQUEST_URI} !^/check.php RewriteCond %{REQUEST_URI} !^/everaces.php RewriteCond %{REQUEST_URI} !^/check.php RewriteCond %{REQUEST_URI} !^/evemap.php RewriteCond %{REQUEST_URI} !^/evestations.php RewriteCond %{REQUEST_URI} !^/killboard.php RewriteCond %{REQUEST_URI} !^/logout.php RewriteCond %{REQUEST_URI} !^/mail.php RewriteCond %{REQUEST_URI} !^/member.php RewriteCond %{REQUEST_URI} !^/myaccount.php RewriteCond %{REQUEST_URI} !^/mycorporation.php RewriteCond %{REQUEST_URI} !^/myskills.php RewriteCond %{REQUEST_URI} !^/playersonline.php RewriteCond %{REQUEST_URI} !^/regadd.php RewriteCond %{REQUEST_URI} !^/register.php RewriteCond %{REQUEST_URI} !^/show_race.php RewriteCond %{REQUEST_URI} !^/show_system.php RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteRule ^(.*)$ /index.php?do=/$1 [L] Quote Link to comment https://forums.phpfreaks.com/topic/141718-htaccess-help/#findComment-744065 Share on other sites More sharing options...
corbin Posted January 23, 2009 Share Posted January 23, 2009 ErrorDocument 403 /403/403.php ErrorDocument 404 /404/404.php RewriteEngine On RewriteCond %{REQUEST_URI} !^/img/.* RewriteRule ^index.php(/.*)$ /index.php?do=$1 [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /index.php?do=/$1 [L] Should do it. Quote Link to comment https://forums.phpfreaks.com/topic/141718-htaccess-help/#findComment-744779 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.