Jump to content

.htaccess Help.


jkewlo

Recommended Posts

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]

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.