Tutorials >> View >> 4
Yahoo chat: marklester_aover
Bookmark and Share

Search Engine Friendly URL - require no www or redirect to site without www using .htaccess

Using .htaccess to redirect your site to any specific url you want is just so easy. If you want to redirect your site to site URL that dont have wwww, like from http://www.myweb.com will be redirect to http://myweb.com. This method will help your site URL to be more minimize, clean and SEF url. So place the code inside your .htaccess file.

Learn the codes below:

# put this .htaccess file to your site root directory #

Options +FollowSymLinks
# start the Rewrite Engine or Rewrite Mode #
RewriteEngine On

# check if url has www #
RewriteCond %{HTTP_HOST} ^www\.mysitename\.com$ [NC]

# redirect url to your url that dont have www #
RewriteRule ^(.*)$ http://mysitename.com/$1 [R=301,L]

Click image to download the Zip file: SEF-URL-redirect.zip

# of Comments (0)

Add your comment here...

Please feel free to make a comment and suggestion on this tutorial. Your comment and suggestion will help improve the tutorial for the benefit of you and others. Thank you...

Name : *
Email Add : *
URL (include http://):
Messages : *
Security Code : *
(*) Must not leave blank.
captcha

Our Main Services

We develop and deliver the following services:

Latest News...

Search My Site

 This Site   Web

Google Ads

Google Ads

Powered By:

Advertise

Place your Custom Advertise here $29 for 1 month. Image dimension 276x180 pixels. Click the Paypal "Buy Now" button below.