Tag Archives for 301 redirect

PHP 301 redirect for non-www to www urls

Want to do a 301 redirect for non-www urls to www, simply use php header command like the following syntax: And for www to non-www: This is extremely useful, where you don’t want to use .htaccess file. But remember to … Continue reading

19. April 2014 by Adnan
Categories: PHP, Programming | Tags: , , | Leave a comment