What is the best way to redirect all old pages to the new pages?
I am completely revising a site using a single menu via php, so my new pages will be .php instead of .html.
When I publish the new pages, I plan to delete the index.html page so going to the site will open index.php.
But there are lots of links to individual .html pages that I would like to redirect to the new .php pages. It appears the easiest way to do this is to simply redirect the whole site via htaccess. Can this be done when not redirecting to a different site? It seems that my 301 redirect links would be oldsite.com to newsite.com when both are named the same at that level. The individual pages are different (php vs html). Then I thought about not deleting the index.html and adding that to the 301 redirect link but I believe that would only redirect the home page?
Is it possible to 301 redirect via htaccess in this case?
Would I need to redirect via 'between head tags' on each page? If so, must the individual pages be blank or can I simply add the code between the head tags without having to delete everything on each page?
I'm sure I'm missing something...is there a better way?
Thanks
I am completely revising a site using a single menu via php, so my new pages will be .php instead of .html.
When I publish the new pages, I plan to delete the index.html page so going to the site will open index.php.
But there are lots of links to individual .html pages that I would like to redirect to the new .php pages. It appears the easiest way to do this is to simply redirect the whole site via htaccess. Can this be done when not redirecting to a different site? It seems that my 301 redirect links would be oldsite.com to newsite.com when both are named the same at that level. The individual pages are different (php vs html). Then I thought about not deleting the index.html and adding that to the 301 redirect link but I believe that would only redirect the home page?
Is it possible to 301 redirect via htaccess in this case?
Would I need to redirect via 'between head tags' on each page? If so, must the individual pages be blank or can I simply add the code between the head tags without having to delete everything on each page?
I'm sure I'm missing something...is there a better way?
Thanks
Comment