I want to change all my pages from .htm to .php so I could use COOP. How do I go about creating 301 redirects?
add this line to .htaccess file in the root of your site AddType application/x-httpd-php .php .htm .html Code (markup): And you'll be able to use php in any htm or html file, just put the code between <? and ?> tags. you don't have to make redirects, its easyer to tell your server that htm and html files can contain php code (the way to activate it is adding that line in .htacces file)
I did .htaccess upload once and my whole web site went down. I had to phone administrators to remove it as the file was invisible to my ftp manager. That's why I want to go down 301 route.