Hello, If I were to change my pages from thispage.html to thispage.php or this-page.html how would I make sure that the old page will redirect to the new one?
There are probably several different ways of doing this, but if you have access to your ".htaccess" file then you could add this line in it: Redirect /thispage.html http://yoursite.com/thispage.php Code (markup):
or on thispage.html you could put <meta http-equiv="Refresh" content="4;url=http://www.domain.com/link.html"> HTML: content=4 - this number is how many seconds until it redirects url= - url you want to redirect this page to.
If you are changing all of them, you'd use something like this in .htaccess: Options +FollowSymLinks RewriteEngine On rewriterule ^(.*)\.html$ $1.php [r=301,nc] Code (markup):
If you have a plan to have an SEO for your site someday, take off this code. G will penalize this meta refresh
Using the php redirect in this case, from my point of view, may create more work for both the webmaster and the web server. The webmaster would have to enable php scripting for files with the .html extension, causing a performance hit to requests for all files with that extension. The webmaster has to insert the redirect code into all the the files he or she wants to redirect, and the server has to send all html files, regardless, to be preprocessed by php. Ne?