UseBB Community

The official board for UseBB help and discussion

UseBB Community » Help & Support » Friendly URLs not working (UBB 1 RC1)

Friendly URLs not working (UBB 1 RC1)

Moderators: Gaia.

Page: 1

Author Post
Member
Registered: May 2006
Posts: 3
On my hosts server Apache is the server software and mod_rewrite is enabled so that is no problem.

The problem seems to be the .htaccess. With the standard .htaccess that is used I get error messages like this one:
Not Found
The requested URL /url/to/my/hosting/subdir/forum/forum.php was not found on this server.

So it uses the entire path and then uses an url like this one:
http://www.domain.ext/url/to/my/hosting/subdir/forum/forum.php

This off course doesn't exist. So I guessed this was an error in the .htaccess. Unfortunately I'm not a big hero in htaccess files. I got as far as this:

Not working (standard)
RewriteRule ^(index|panel|faq|search|active|online|members|rss|stats)\.html?[\.,;\-]?$ $1.php


Not working (added relative subdir)
RewriteRule ^(index|panel|faq|search|active|online|members|rss|stats)\.html?[\.,;\-]?$ ./$1.php


Working (added absolute path)
RewriteRule ^(index|panel|faq|search|active|online|members|rss|stats)\.html?[\.,;\-]?$ http://www.domain.ext/forum/$1.php 


Maybe it's my host, but normally I don't have any trouble with .htaccess files. Might this be a bug or does anyone know what is going on? Thanks for your help!

(Hmm... while looking at the preview I think I found some sort of bug: )
Some text first
http://www.domain.ext/

Code only stops after some text and a new code open tag (and close tag) 

This one doesn't even get parsed:
Some text first
http://www.domain.ext/
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
Please search, a possible solution is found here: http://www.usebb.net/community/topic-1054.html

Since most Apache versions and configurations work perfectly without RewriteBase set, it is not included in the .htaccess by default.

The BBCode bug is being worked on, but please seperate your reports in the future.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog

Page: 1

UseBB Community » Help & Support » Friendly URLs not working (UBB 1 RC1)

UseBB Community is powered by UseBB 1 Forum Software