Welcome Guest, Not a member yet? Register   Sign In
Website slow after removing index.php
#1

[eluser]Hamed[/eluser]
this is my new script with CI
http://wgd.ir
and here is my .httaccess
Code:
Options FollowSymLinks
DirectoryIndex index.php

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d  
RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]

This type of removing index.php is really slow.
#2

[eluser]stefanos[/eluser]
Hi Hamed,

Same problem here!

Once the index.php is removed with:

Code:
<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /

        # Removes index.php from ExpressionEngine URLs
        RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
        RewriteCond %{REQUEST_URI} !/system/.* [NC]
        RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

        # Directs all EE web requests through the site index file
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

Or other apache scripts, the pages load time is 10 times slower that with index.php... I don't know why.
#3

[eluser]jonez[/eluser]
[quote author="Hamed" date="1350136698"]This type of removing index.php is really slow.[/quote]
If that's the only rule in your .htaccess file a single rewrite will not decrease performance 10x. Something else is wrong with your server if you're seeing that much of a performance degradation.
#4

[eluser]stefanos[/eluser]
Jonez,

Thanks for your reply.

I've tried many scripts to remove index.php. In fact you are right, the problem would come from the server. I will ask for the provider.



Stéphane
#5

[eluser]jonez[/eluser]
[quote author="stefanos" date="1389016069"]Jonez,

Thanks for your reply.

I've tried many scripts to remove index.php. In fact you are right, the problem would come from the server. I will ask for the provider.

Stéphane[/quote]

You've probably already tried this but these are the only two changes I had to make:

Code:
$config['index_page'] = '';

.htaccess
Code:
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
#6

[eluser]InsiteFX[/eluser]
For one the [L] should be the last one in the list, it tell's it to stop checking!

[NC,QSA,L]
#7

[eluser]stefanos[/eluser]
Thanks for the tips,

Code:
$config['index_page'] = '';
was already set to blank.

I wrote to the internet provider about this problem. I don't understand the causes of the problem: modules, plugins, extension?? Or a server configuration.
#8

[eluser]stefanos[/eluser]


I used the site tools.pingdom.com/fpt, to measure the Website Speed Test. Without to remove index.php the total result is 4.5s. Removing index.php it's 24s!!!! It is not a server problem, it really seems it comes from EE.




Theme © iAndrew 2016 - Forum software by © MyBB