Recent Topics

1 Jan 27, 2015 22:46    

That's it really. I can't use .htaccess on my blog because the file below causes the errors mentioned. Any help would be greatly appreciated.

This is the file that makes my site inaccessible. It's in the root folder / above public_html. The reason I am using a file from July 2013 is that as one of my attemtps to correct this error, I tried to find the .htaccess file that was provided with 3.3.3.

-----------------------

# Apache configuration for b2evolution's base folder
# Lines starting with # are comments.
# Updated 2013-07-16

# PHP / SECURITY:
<IfModule mod_php5.c>
# On some overly "secured" systems, the following may need be added in
#each folder:
# AddHandler application/x-httpd-php5 .php

# The following will try to configure PHP in the way
#b2evolution would like it to be:
php_flag register_globals Off
php_flag display_errors On
php_value error_reporting E_ALL

# You may also need some of the following:
# Increase memory limit
# php_value memory_limit 256M
</IfModule>

# DISABLE LISTING FILES ON SERVER:
# Don't show directory contents (not desirable, especially for
#media folders)
Options -Indexes
# Note: if you have access to the command line of your server,
#it would probably
# be even better to type this: a2dismod autoindex
# (This disables the directory listing module completely)

# DEFAULT DOCUMENT TO DISPLAY:
# In case no specific file is requested, we want to fall back to
#index.php
# In case some subdirectories are accessed, we want to display
#index.html
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>

# CLEAN URLS:
# The following will ensure you can pass extra params after the
#filename on the URL
AcceptPathInfo On

# CATCH EVERYTHING INTO B2EVO: (even if no php file appears in
#the URL)
# The following will allow you to have a blog running right off
#the site root,
# using index.php as a stub but not showing it in the URLs.
# This will add support for URLs like:
#http://example.com/2006/08/29/post-title
<IfModule mod_rewrite.c>
RewriteEngine On

# This line may be needed or not.
# enabling this would prevent running in a subdir like
#/blog/index.php
# RewriteBase /

# Redirect anything that's not an existing directory or
#existing file to index.php:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

2 Jan 28, 2015 22:50

Hi @loobyloo,

I'm not clear if your current version is 3.3.3 or if you're just using the .htaccess included in that version. Anyway, please make sure that your hosting provider accepts this kind of tags in that file:


php_flag register_globals Off
php_flag display_errors On
php_value error_reporting E_ALL

If the answer is negative, please comment them by adding a # at the beginnig of each line.

If they do accept those instructions or you keep getting the same error even after commenting the lines, then you need to find out which instruction is producing the error by a trial an error proccess over each line of the whole file.

I really don't see anything weird, except maybe a missing </IfModule> tag at the end of the file, but I guess it was a copy&paste problem. Just to be sure, please check that the tag is actually included at the end of your file.

Regards!

3 Jan 29, 2015 00:29

Thank you mgsolipa. I will do those steps and report back here once I've tried them.

Cordialiment

4 Jan 29, 2015 14:50

@mgsolipa wrote earlier:

Hi @loobyloo,

I'm not clear if your current version is 3.3.3 or if you're just using the .htaccess included in that version. Anyway, please make sure that your hosting provider accepts this kind of tags in that file:

php_flag register_globals Off
php_flag display_errors On
php_value error_reporting E_ALL

If the answer is negative, please comment them by adding a # at the beginnig of each line.

If they do accept those instructions or you keep getting the same error even after commenting the lines, then you need to find out which instruction is producing the error by a trial an error proccess over each line of the whole file.

I really don't see anything weird, except maybe a missing </IfModule> tag at the end of the file, but I guess it was a copy&paste problem. Just to be sure, please check that the tag is actually included at the end of your file.

Regards!

I have the missing </IfModule> tag at the end of the file.

I tried commenting out

php_flag register_globals Off
php_flag display_errors On
php_value error_reporting E_ALL

but still the error occurs. I suppose it's a question of commenting out individual lines now :( That'll keep me busy for a while!

5 Jan 29, 2015 15:26

FOUND IT!

AcceptPathInfo On

breaks my site.

Thanks for your help again mgsolipa


Form is loading...