Welcome to ..........

Wednesday, July 9, 2014

Redirect to domain without www.

redirection rule in .htaccess as follows

RewriteEngine on

# Redirect to domain without www.
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule .* http://%1%{REQUEST_URI} [R=301,L]
Posted by vasu at 10:39 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Blog Archive

  • ►  2015 (9)
    • ►  November (1)
    • ►  October (2)
    • ►  September (3)
    • ►  April (1)
    • ►  February (2)
  • ▼  2014 (19)
    • ►  September (1)
    • ▼  July (11)
      • Get the phpMyAdmin's Visual Query Designer
      • htaccess rules
      • .htaccess ip bases restriction
      • .htaccess redirection
      • Import and Export CSV file into mysql database
      • Redirect to domain without www.
      • Git basic commands
      • iis configuration for drupal clean-urls
      • Configuring Vitualhost in apache (Plesk)
      • A step by step guide on how to create a sub domain...
      • database backup and remove older files
    • ►  March (2)
    • ►  January (5)
  • ►  2013 (18)
    • ►  December (18)

About Me

vasu
View my complete profile
Simple theme. Powered by Blogger.