PDA

View Full Version : .htaccess | 500 error



Talks_44
01-05-2012, 01:30 AM
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
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.

deepsand
01-05-2012, 01:35 AM
See Finicky htaccess files -- am I doing something wrong? (http://www.webproworld.com/webmaster-forum/threads/114426-Finicky-htaccess-files-am-I-doing-something-wroing).

Talks_44
01-05-2012, 01:47 AM
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?

deepsand
01-05-2012, 02:22 AM
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.

Talks_44
01-07-2012, 03:43 AM
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...

Talks_44
01-13-2012, 06:40 AM
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?

deepsand
01-13-2012, 08:51 PM
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.