About Katz Web Services
Katz Web Services is a web development company operated by Zack Katz.
-
Plugin Support Topics
Popular Posts
- Simple Vertical Align Plugin for jQuery
- How to Create a Custom RSS Feed in WordPress in 12 Lines of Code
- Contact Form 7 Modules - A Plugin
- iContact Widget for WordPress
- Gravity Forms Shortcode Explained
- SEO WordSpinner Plugin - A Killer SEO Plugin for WordPress
- Weather Forecasts for WordPress - WP Wunderground Plugin
- jQuery validator annoyances
Tag Cloud
Marketing WordPress Plugins SEO Search Engine Optimization Denver Interspire Development Nofollow Plugin Domains Optimization Design Functions.php Web Design Links Search Website Redesign WordPress Google SEO Shopping Cart Code Google WordPress SEO CSS Javascript Denver SEO Interspire Shopping Cart WP Plugins Blogging eCommerce WordPress Development
Tag Archives: WWW
How to Add www. – or Remove www. – From Your URL

This has been done many times by others, but just a quick tip on how to add or remove www. from your website’s address. This is helpful for URL canonicalization and user experience consistency. You can also achieve SEO-friendly canonicalization using rel="canonical". Oh boy, I’m getting too technical
Here’s the juicy part:
Add the following to the .htaccess file in your website’s root folder (often named public_html or www). If there’s not a file named .htaccess, you may create it. If you are creating the .htaccess file, set the permissions to 644. For security reasons, you don’t want others to be able to write to this file.
Posted in QuickTip, Web Development
Tagged Canonical, Canonical Tag, domain, Domains, htaccess, SEO Steps, SEO Tutorial, URL, WWW
2 Comments
Redirect a Website in ColdFusion – Add www. or Move to New Domain
Redirecting a website in ColdFusion (.CFM)
I have been working on a ColdFusion website, and I wanted to find a way to require ‘www.’ in the URL (to consolidate all pages on www. for SEO). I normally work with PHP and Apache servers, so I’m used to .htaccess. I knew there had to be a way.
Here’s a simple method of redirecting a whole website in ColdFusion:
<!-- If the site isn't www... -->
<cfif (CGI.SERVER_NAME NEQ "www.example.com")>
<!-- Save the URL (and $_GET variables too) as the string 'strUrl' -->
<cfset strUrl = CGI.script_name & "?" & CGI.query_string />
<!-- Use 301 for SEO-friendly redirects -->
<cfheader statuscode="301" statustext="Moved permanently">
<!-- Redirect to new website (this case, added www.) with strUrl added on -->
<cfheader name="Location" value="http://www.example.com#strUrl#">
</cfif>
Posted in Tutorial, Web Development
Tagged 301 Redirect, ColdFusion, htaccess, Redirects, SEO Redirect, WWW
1 Comment