Recent Topics

1 Jul 24, 2009 19:41    

My b2evolution Version: Not Entered

I have edited my .htaccess file according to the instructions at http://manual.b2evolution.net/Blog_url_settings. I have repeatedly gone to my b2evo>blogsettings>urls tab

Here's the information on that screen.

Blog URL name:
Used to uniquely identify this blog. Appears in URLs and gets used as default for the media location (see the advanced tab).

Blog base URL:
Default blog in index.phphttp://ifcamedia.org/blogs/index.php (Current default : TRLC)

Explicit param on index.phphttp://ifcamedia.org/blogs/index.php?blog=6

Extra path on index.phphttp://ifcamedia.org/blogs/index.php/TheRegionalLeader

Relative to baseurl:http://ifcamedia.org/blogs/

Subdomain of basedomainhttp://url_name.ifcamedia.org/

Absolute URL:

URL preview:
http://ifcamedia.org/blogs/TRLC/

By selecting "Relative to baseurl" I was attempting to achieve a Blog URL of http://ifcamedia.org/blogs/TRLC but it's not working.

What am I missing?

ALSO Can you explain the "absolute URL" ... surely I cannot create a url of http://TRLC and yet it would seem as though it allows you to put anything in there.

Thanks for your help
T

2 Jul 24, 2009 21:16

Use "absolute url" "http://ifcamedia.org/blogs/TRLC" ;)

¥

3 Jul 24, 2009 23:29

I'm sorry for being thick headed but I'm missing something ... I've placed http://ifcamedia.org/blogs/TRLC/ in the absolute URL section of the configuration page (b2evo>blogsettings>urls tab )... it is still not working. :-(

T

4 Jul 24, 2009 23:33

Can you post the contents of your /.htaccess && /blogs/.htacces?

¥

5 Jul 25, 2009 04:47

It seems as though you asked for the contents of two separate htaccess files ( /.htaccess && /blogs/.htacces)... is that true? I can only find one ... this is the content of the one in the /blogs subdirectory.

T

/blogs/htaccess
ASCII English text

# Apache configuration for the blog folder
# Lines starting with # are considered as comments.

# PHP SECURITY:
# this will make register globals off in the evo directory
<IfModule mod_php4.c>
	php_flag register_globals off
</IfModule>
<IfModule mod_php5.c>
	php_flag register_globals off
</IfModule>

# PHP5
# This may need to be in each folder:
# AddHandler application/x-httpd-php5 .php

# CLEAN URLS:
# If you're using Apache 2, you may wish to try this if clean URLs don't work:
# AcceptPathInfo	On


# DEFAULT DOCUMENT TO DISPLAY:
# this will select the default blog template to be displayed
# if the URL is just .../blogs/
<IfModule mod_dir.c>
	DirectoryIndex index.php index.html
</IfModule>


# CATCH EVERYTHING INTO B2EVO:
# The following will allow you to have URL right off the site root,
# using index.php as a stub but not showing it.
# This will add support for URLs like:  http://example.com/2006/08/29/post-title
# Redirect anything that's not an existing directory or file to index.php
#
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^  index.php

6 Jul 25, 2009 09:54

Change the last bit to look like this :

# Redirect anything that's not an existing directory or file to index.php
RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^  ./index.php

¥

7 Jul 27, 2009 14:47

TWO QUESTIONS:
1) I am still unable to get short URLs to work. On the URL configuration page for a blog named TRL I get the following results:

Explicit param on index.php – works: http://ifcamedia.org/blogs/index.php?blog=6

Extra path on index.php – works: http://ifcamedia.org/blogs/index.php/TRL

Relative to Baseurl: - does not work 404 error, webpage cannot be found: http://ifcamedia.org/blogs/TRL/

Subdomain of Basedomain – does not work: http://TRL.ifcamedia.org/

Absolute URL – does not work: http://ifcamedia.org/blogs/TRL/

Here is the contents of my htaccess file:
===
# Apache configuration for the blog folder
# Lines starting with # are considered as comments.

# PHP SECURITY:
# this will make register globals off in the evo directory
<IfModule mod_php4.c>
php_flag register_globals off
</IfModule>
<IfModule mod_php5.c>
php_flag register_globals off
</IfModule>

# PHP5
# This may need to be in each folder:
# AddHandler application/x-httpd-php5 .php

# CLEAN URLS:
# If you're using Apache 2, you may wish to try this if clean URLs don't work:
# AcceptPathInfo On

# DEFAULT DOCUMENT TO DISPLAY:
# this will select the default blog template to be displayed
# if the URL is just .../blogs/
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>

# CATCH EVERYTHING INTO B2EVO:
# The following will allow you to have URL right off the site root,
# using index.php as a stub but not showing it.
# This will add support for URLs like: http://example.com/2006/08/29/post-title
# Redirect anything that's not an existing directory or file to index.php
#
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ ./index.php
===

NOTE: The last suggestion I was given was to insert the ./ before index.php in the last line of the htaccess file. That did not help.

2. How do I remove the tabs for Blog A, Blog B etc. from the top of the page of TRL blog?

8 Jul 27, 2009 17:40

Is your hosting interpreting your htaccess? If the last 4 lines of your .htaccess were working, http://ifcamedia.org/blogs/bla should fall in b2evolution (and display a b2evolution 404 page). Talk to your host provider!

9 Sep 03, 2009 18:46

I have also been spending a lot of time trying to get the short URL to work. I uncommented the lines in the .htaccess file as instructed:

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

I played around some with the url settings in the admin section, but continue to get an "unexpected error" message followed by this:

Additional information about this error:
The skin [lush] set for blog [Main] does not exist. It must be properly set in the blog properties or properly overriden in a stub file.

The skin IS set, as far as I can tell.

Furthermore, now when I type in www.atheiststate.ca/b2evolution/blogs I get this error:

Not Found

The requested URL /b2evolution/blogs was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Before I changed the .htaccess file I COULD access the blog, albeit inconveniently.

Can anyone please, please advise me on what is going on?

10 Sep 03, 2009 18:53

Now nothing works at all. I cannot access the blog via any URL. This is most discouraging.

I set the .htaccess file back to comment out those three lines.

It did not go back to the previous situation, so now I don't know what to do at all.

11 Sep 03, 2009 19:42

You *really* need to go back and re-read what EdB told you in the other thread about moving your blog files ( they're currently in /b2evolution/ btw )

¥

12 Sep 03, 2009 22:22

Certainly. EdB wrote: "Try taking all the files and folders that are in /b2evolution/ and moving them up one level. The only other way to get 'er done is through some .htaccess trickery that I know nothing about."

I did that, as best I could, by moving the entire "b2evolution" folder to my "/" directory. Now, if that is the incorrect approach, my bad. But I do not know what would be better.

It solved nothing. That is why I moved them back to where they are now. I tried a different approach that was dealt with in this thread and I am still getting no where.

I've just got a reply from my host, and at least I know that .htaccess files are supported.

I know that reinstalling is always an option, but one would hope a last one.

13 Sep 03, 2009 22:24

Oh, I must point out that I did document my efforts at following EdB's advice in the other thread, so perhaps it is not I who "really" needs to reread some things.

14 Sep 03, 2009 22:28

You're quite right, EdB generalised a smidge, and I missed it, he should have said /b2evolution/blogs/

¥

15 Sep 03, 2009 22:49

Ah, OK, that is very interesting, because I already did move the "blogs" folder to my root.

Perhaps this reply from my host is relevant to the current quandary?

"While checking your account, we could see that, there is no content in the .htaccess file of public_html folder and there is no .htaccess file in the folder 'b2evolution'. Please upload correct .htaccess file and your site will be working fine then."

16 Sep 03, 2009 22:53

That didn't come out quite right, did it?

I should have said, "... I already did move the "blogs" folder to my root directory", to avoid any ambiguity.

17 Sep 03, 2009 23:49

Stick to one thread, please. Either you are trying to get it working in general or you are trying to craft up short urls. One or the other gets locked is the thing.


Form is loading...