Recent Topics

1 Dec 18, 2008 10:48    

My b2evolution Version: 2.x

Website: http://www.naschenweng.info / Linkblog: http://www.naschenweng.info/linkblog

If you visit my site above, you will notice that I have friendly URLs working. I then decided to change the linkblog (blog-id=3) and make it work with friendly URLs.

I have done the following:
- I created a stub-file called "linkblog.php" which has the blog-id=3
- Changed the Linkblogs URL-filename to "linkblog"
- Changed the Blog base URL to Absolute URL "http://www.naschenweng.info/linkblog/"
- Changed all the other settings on URL to "use extra path"

I also adjusted the .htacces-file to the following:

# If the subject/extrapath does not match an existing file, call b2evo! 
RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule ^(linkblog)(/.*)?$  $1.php

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^  index.php

I am able to see the friendly URLs on the linkblog, however if I click on the link, it displays the error "No input file specified.".

As the main-page is working with friendly URLs, I am unsure where the problem resides. Any help would be appreciated - it sounds like something small but I can not find the source of the problem...

2 Dec 18, 2008 18:01

Try replacing this :

RewriteRule ^(linkblog)(/.*)?$ $1.php

with:

RewriteRule ^(linkblog)(/.*)?$ ../$1.php$2 [QSA, L]

¥

3 Dec 18, 2008 19:09

¥åßßå wrote:

Try replacing this :

RewriteRule ^(linkblog)(/.*)?$ $1.php

with:

RewriteRule ^(linkblog)(/.*)?$ ../$1.php$2 [QSA, L]

¥

Thanks - I tried this, but it breaks the main-blog now as well (getting error 500)

5 May 08, 2009 23:22

Something is making me think your issue is unrelated to .htaccess stuff. Meaning I think you have /blog/ added somewhere on your "Blog settings -> pick a blog -> URLs" sub-tab. In other words it is there because somehow you told it to be there. Oh wait this is assuming the installation is at the root level and not in a /blog/ folder, but I'm pretty sure it is so I'm pretty sure you can find and remove it via the back office.

I'm also pretty sure that tomorrow I'm going to run off a mountain, fall a few thousand feet up, and land across the street from my house. Life is GOOD!

6 May 09, 2009 02:04

Thanks EdB.

I chose this setting:

Default blog in index.phphttp://eileentotheleft.org/index.php (Current default : blog)

This did the trick.

Now, if I add another blog (ie blog=2) will that then add /index.php/blog2/Title? or can that one also be set up as a default?


Form is loading...