Recent Topics

1 Feb 03, 2015 13:54    

I switched one of my blogs (a forum) to its own subdomain, it all works fine, but now after adding or editing any content on that blog, it redirects to my main blog's homepage, with the error "Tried to redirect to an external url!". Clearly, b2e thinks the subdomain is an external url. Is there some way to register the subdomain with b2e so that it doesn't throw this error all the time?

Since the b2evo forum is itself running on a subdomain, I figure there must be a way to do it.

Running on 5.2.1-stable.

3 Jul 20, 2015 14:56

I finally fixed that by using the .htaccess file - but now I have no content anymore!

www.miq.es
www.marcoplast.com
http://made-in-quality.de/
http://computer-doctor.marbella2000.de/

# 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 to 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]
	</IfModule>

4 Jul 22, 2015 20:02

You just need to change the security policy of $allow_redirects_to_different_domain in the [[advanced-php]] config file.


Form is loading...