Recently i installed one script and enabled the mod_rewrite. Now when i load the site its just keep refreshing without loading. If i disable rewrite, it works fine.

.htacess content

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

Than you

link|improve this question
What do you mean "keep refreshing without loading"? Use Firebug for Firefox ("Net" panel) or any similar tool and see the network activity. Also -- check your web server (Apache?) logs. – LazyOne Jul 11 '11 at 10:08
refreshing means its keep on loading but site never loads. – Kiran Jul 11 '11 at 12:01
feedback

1 Answer

up vote 0 down vote accepted

There's no error in the syntax of .htaccess file. All requests will be redirected to index.php where the information about requested path should be available in $_SERVER['PATH_INFO']

As recommended in the comment by LazyOne, try to check the network activity to see what's happening. If that doesn't help, look for the error in the PHP script.

Another tool which could help you with investigating what's happening is Live HTTP Headers Firefox extension.

link|improve this answer
I installed same in localhost and found the problem. when i enable Override All in httpd.conf it works fine. Is there any risk involved in enabling on my server. – Kiran Jul 13 '11 at 4:21
There's no risk provided that nobody except you can change the .htaccess file. If you are worried about security, you can disable it server-wide and enable for a particular virtual host only. – Viktor Stískala Jul 13 '11 at 9:10
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.