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.

I have placed .htaccess file in my server's root folder with following content,

Redirect 303 /index.html http://mysite.com/index.php

to redirect my index.html to index.php,

but it has created one issue that some the my .php files are not getting displayed, it displays blank page.

so want to restore all the changes done by .htaccess file,

do anyone have any idea how to get out of this problem or how to restore all the changes done by .htaccess file?

share|improve this question

1 Answer 1

The .htaccess file does not change any configuration in your server. If you don't want it, you can just remove the file, rename it, or move it out of your server path.

share|improve this answer
    
thanks khaled, your statement "htaccess file does not change any configuration in your server" gave me huge relief, but .php files are stopped getting displayed after i have put this .htaccess file. i have removed .htaccess file, but still issue exists –  Manoj Nakum Jan 2 '12 at 9:15
    
@ManojNakum: so, you need to double-check your configurations. –  Khaled Jan 2 '12 at 9:18
    
i am new to all this, can you please explain it in detail, how to do that? –  Manoj Nakum Jan 2 '12 at 9:21
    
You need to start by looking at apache error log. Also, you can try to revert the recent changes if you can remember them! –  Khaled Jan 2 '12 at 10:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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