Browsing articles tagged with "domain name Archives - PHP Dev Tips"
Jun
26
2011

301 Redirect Using .htaccess

301 redirect image

A commonly overlooked factor in search engine optimization for websites is the “to www or not to www” question.  Singularly speaking, search engines have no preference for your site to contain the “www” prefix, however failure to specify can negatively impact your search engine rankings. Do note that in order for the .htaccess file modification below to function properly, your webserver must allow mod_rewrite. Consider the following scenario. You submit your xml sitemap to google. […]