htaccess file - I Need Your Help. Thanks

Discussion in 'Site & Server Administration' started by Robert224466, Sep 22, 2008.

  1. #1
    I have this file and it works for me.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^europeword\.com$ [NC]
    RewriteRule ^(.*)$ http://www.europeword.com/$1 [R=301,L]

    Now i got a blog

    europeword.com/blog

    so i made a file looking like this


    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^europeword\.com$ [NC]
    RewriteRule ^(.*)$ http://www.europeword.com/$1 [R=301,L]

    RewriteCond %{HTTP_HOST} ^http://www.europeword.com/blog/index.php $ [NC]
    RewriteRule ^(.*)$ http://www.europeword.com/blog /$1 [R=301,L]

    It wont work. It wont even load my website.

    I need to redirect blog/index.php into just /blog


    HELP Please.
     
    If someone posts a solution, use the "Best Answer" link in their post to pick it as the best answer.
    Robert224466, Sep 22, 2008 IP
  2. onlyhuman

    onlyhuman Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    just making one guess/observation here, is the "\" before the .com correct? I mean, is it supposed to be there? I've seen a few htaccess file solutions, but I don't think I've seen it set up with the "\.com" before.
     
    onlyhuman, Sep 22, 2008 Set Best Answer IP
  3. Robert224466

    Robert224466 Guest

    Best Answers:
    0
    #3
    To be honest, i don't know... It works with it, but you have a good point. I will try to take it off and see maybe it will work without it. thanks

    Anyone else ???????????????
     
  4. onlyhuman

    onlyhuman Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I don't know too much about it, and I'm working on my file right now. Once I finish what I'm doing, if no one else comes around to help you out I will try to duplicate what you are trying to do and see if I can help you find the solution.
     
    onlyhuman, Sep 22, 2008 Set Best Answer IP