Submit Your Article Forum Rules

Results 1 to 7 of 7

Thread: .htaccess | 500 error

  1. #1
    Member
    Join Date
    Apr 2008
    Posts
    79

    .htaccess | 500 error

    Recently I've re-added non-www to www redirects to all my domains, everything works fine except for one subfolder...

    Whenever I try adding the redirect to the mydomain.net/forums/ which is my IPB forum, it produces a 500 error. The redirect works fine and as it should on everything else, including the mydomain.net itself. It's just that /forums/ with the IPB board which isn't working...

    My .htaccess file
    Code:
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
    
    <IfModule mod_rewrite.c>
    Options -MultiViews
    RewriteEngine On
    RewriteBase /forums/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /forums/index.php [L]
    </IfModule>
    The second part of the file is IPB's way of removing /index.php?/ from every URL which is a default feature.

    Anyone have any ideas? I really don't see why it's not working. I've not encountered this issue before.

  2. #2

  3. #3
    Member
    Join Date
    Apr 2008
    Posts
    79
    I saw that, it's not entirely the same thing. My site doesn't go down, using the url with www works just fine. It's only when trying to access it through non-www that this error shows up. I was curious if anyone has had any experience with this and IPB, because I know it's an IPB thing, not something the webhost can fix or help with really.

    because when going to mydomain.net/forums/index.php? redirects to mydomain.net/index.php?

  4. #4
    WebProWorld MVP deepsand's Avatar
    Join Date
    May 2004
    Location
    State College, PA
    Posts
    16,469
    The other thread is not about a site going down, but about its throwing 500s after editing htaccess.

    That the scope of the problems may be dissimilar does not necessarily mean that their causes are unrelated.

  5. #5
    Member
    Join Date
    Apr 2008
    Posts
    79
    I've removed the redirect from the htaccess file at this point in time. I've been unable to find any documentation about it, even on their support boards, so I'll just not worry about it right now. I'll worry about it more when I get closer to actually launching it. It's just for testing purposes atm anyways. Simply trying to expand my knowledge on it. Hasn't worked...

  6. #6
    Member
    Join Date
    Apr 2008
    Posts
    79
    Well.. I just thought I would share the fact that it's working now, mydomain.net/forums/ redirects to www.mydomain.net/forums/ but I'm not certain WHY it's working now...

    The .htaccess files that I edited to include the www redirect aren't there and it's all of a sudden working.. so I've not tampered with it since.. figure it's working, why bother?

  7. #7
    WebProWorld MVP deepsand's Avatar
    Join Date
    May 2004
    Location
    State College, PA
    Posts
    16,469
    Sounds like www.mydomain.net is the A record in your DNS, with mydomain.net being a CNAME record, so that no true redirection is actually occurring.

    The equivalent would be the case of mydomain.net being the A record in your DNS, with www.mydomain.net being a CNAME record.

    Absent such CNAME records, user could only reach your site by using which form is in the A record.

    Tell us your DN, and we can determine which is the case for your site.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •