WordPress.org

Ready to get started?Download WordPress

Forums

How to force WWW into the url if domain.com is typed ? mod rewrite not working (1 post)

  1. cuban_cigar
    Member
    Posted 5 years ago #

    In wp 2.6 and most webpages, a familiar mod rewrite would do the trick:

    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on

    rewritecond %{http_host} ^domain.com
    rewriteRule ^(.*) http://www.domain.com/$1 [R=301,L]

    Now in 2.8 it seems that nothing at all works, when someone tyes:

    domain.com

    this loads:

    http://domain.com <- and looks all messed up, css not loading.

    I need it to go to this:

    http://www.domain.com <- which looks just fine

    Again I have gotten it working on several wordpress sites using v2.6, but it wont work now as if by dark magic. The company CEO is emailing expletives into the support box, please help.

    How can .htaccess redirects suddenly be choking now?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.