Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

closed as not a real question by Tom O'Connor, Bart De Vos, Ward, Michael Hampton, Ladadadada Sep 5 '12 at 20:16

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the 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

1 Answer 1

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.

share|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

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