I have a few html pages that I want to redirect one by one to php pages. What would be the correct line in .htaccess ? .htaccess file in the folder "bil" with the line Redirect 301 index.html http://www.mydomain.info/bil/index.php is not working Thanks. EDIT: Ok. RewriteEngine on Redirect 301 /bil/index.html works
I would recommend that you do that only for indexes and for the rest you can just modify the code. For indexes you can do it from httpd.conf, look for something like this: DirectoryIndex index.html index.wml index.cgi index.php index.phtml index.htm Code (markup): and make sure index.php is before index.html. Save changes & restart apache. Good luck
If you have a dedicated server or VPS then yes, login via SSH as root and issue the command: /etc/init.d/httpd restart If you are a shared hosting customer and you need to restart apache for some reason you should contact your provider.