| ||||||
|
url rewritingBuilding dynamic websites with a static look using phpyou have: http://www.domain.com/messages.php?id=2&type=5 you want: http://www.domain.com/messages/2/5/ create a file: messages (without suffix)
add to your (or create a) .htaccess file in that directory
Move your site without penalization in ranking You wan't to change your url: http://www.old.com/address/ (root of the old homepage) to http://www.newsite.com/steve/ add to your (or create a) .htaccess file in your old root directory
http://www.old.com/address/ ® http://www.newsite.com/steve/ http://www.old.com/address/data/10.html ® http://www.newsite.com/steve/data/10.html http://www.old.com/address/index.php?id=1020 ® http://www.newsite.com/steve/index.php?id=1020 you can also redirect single files only (e.g.: if you change the name):
http://www.old.com/address/data/oldfilename.html ® http://www.old.com/address/newdirectory/newname.php This directive makes the search engine know that the redirect is permanent (status 301). No penalization in ranking. |
|
| ||||||