Web pages move - that’s a fact of Web development. And if you’re smart, you use 301 redirects to prevent link rot. But what if you move the entire website? You could go through and manually write a redirect for every file on the site. But that could take a long time. Luckily it’s possible to use htaccess and mod_rewrite to redirect an entire website with just a few lines of code.
1. In the root of your old Web server, edit or create a new .htaccess file using a text editor.








Be The First To Comment
Related Post
Please Leave Your Comments Below