Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

SEO .htaccess tip - Force www. In your URL, Apache

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,992
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 8, 2009

http://www.helpvid.net
http://seoninjaforum.com/
The Code:

# Make all requests have the www. in them
RewriteEngine on
RewriteCond %{HTTP_HOST} ^websitename\.com
RewriteRule ^(.*)$ http://www.websitename.com/$1 [R=permanent,L]


The apache method of forcing script connection if the www. is missing. SEO Tip - re-direct htaccess file for WWW. linux apache web server
connect dynamic file

  • likes, 1 dislikes

Link to this comment:

Share to:
see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • Hahaha!! Your accent is epic! Didn't you star Braveheart?

  • Not working for me

  • your .htacces is vulnhérable

  • ye this is good information thank you so much for sharing this. I have been trying to do this for ages. Your way is th efirst i had to work. Everything looks good now

  • Code didn't work for me please upload to your site and send me the url

    thanks for reading

  • nice....i waz thinking about using Apache as a free server, but u try tomcat? Do u use inetpub??

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more