noob alert - please help me with some htaccess...

Discussion in 'Apache' started by xxMirceaxx, Mar 15, 2008.

  1. #1
    i can't get to solve this, I installed friendly urls on a forum and i need to redirect from www.domain.com/forum/ to www.domain.com/forum/forums.html , also i need to redirect the non www version, but I have blog.domain.com that stops working when i do that.

    my htaccess files currently looks like this
    Where and what should I put to make it work? :eek:
     
    xxMirceaxx, Mar 15, 2008 IP
  2. xxMirceaxx

    xxMirceaxx Well-Known Member

    Messages:
    917
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    135
    #2
    still searching :(
     
    xxMirceaxx, Mar 19, 2008 IP
  3. xxMirceaxx

    xxMirceaxx Well-Known Member

    Messages:
    917
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    135
    #3
    please!!!!!!!!!1112 :|
     
    xxMirceaxx, Mar 23, 2008 IP
  4. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Start the .htaccess file with:
    Options +FollowSymlinks
    RewriteEngine on 
    RewriteCond %{HTTP_HOST} ^domain.com$ 
    RewriteRule ^(.*)   http://www.domain.com/$1  [QSA,L,R=301]
    RewriteCond %{HTTP_HOST} ^www.domain.com$ 
    RewriteRule ^forum/?$   http://www.domain.com/forum/forums.html [QSA,L,R=301]
    
    Code (markup):
    Jean-Luc
     
    Jean-Luc, Mar 23, 2008 IP
    xxMirceaxx likes this.