Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
For instance.. how do i make a site like

http://www.anything.com/board_name/ultimatebb.cgi

look like this

http://www.anything.com/board_name

and the root of the folder automatically forward to the UBB?

It has to be simple because i see so many doing it. Is it an html index.html in that folder forwarding?

Regardless, how do i do it?

Anonymous
Unregistered
Anonymous
Unregistered
There are several ways.

1) Place an index.html file with a meta refresh tag.

2) Using Apache, add a line: "DirectoryIndex ultimatebb.cgi" to your .htaccess file. (No quotes)

And probably other ways too. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

Graeme

Moderator: UBB6 How Do I?

NOTE: Any email requests for support will be ignored.

"The ships hung in the sky in much the same way that bricks don't." --Douglas Adams

Anonymous
Unregistered
Anonymous
Unregistered
Thank you! That worked (option 2)

Anonymous
Unregistered
Anonymous
Unregistered
Or a simply javascript...

Anonymous
Unregistered
Anonymous
Unregistered
I have tried the htaccess route and it does work, however, once your users are in the board, they see the full URL to the ultimatebb.cgi script.

I have used another BBS (YaBB) where you can change a config var so that the path shown in the location line shows only the folder with the .htaccess DirectoryIndex line. Ex:
www.sitename.com/forum/?ubb=forum;f=1

Can you do this with UBB by changing the cgi URL in the main config from
http://www.sitename.com/cgi-bin/forum
to
http://www.sitename.com/forum/
(once you have the .htaccess file uploaded)

I'd try it, but I'm concerned about such a fundamental path screwing something up.

Thanks,
Greg

Anonymous
Unregistered
Anonymous
Unregistered
OK, I tried it on a test server and it did not work.

My .htaccess file in the forum sitename.com/folder contains only the following:

DirectoryIndex ../../cgi-bin/UBB64/ultimatebb.cgi

Any suggestions?

I mainly just want the location line in the browser to show a shorter URL, without the cgi-bin/subfolder path included.

Anonymous
Unregistered
Anonymous
Unregistered
bump...

Anyone? Please?

Anonymous
Unregistered
Anonymous
Unregistered
I do not believe .htaccess files can redirect to a separate directory in that manner. You would need a separate .htaccess and some type of redirect (in the META headers or a Javascript) in the /forum directory.

You could also put your UBB cgi files in a directory named "forum" (with proper read/write/execute permissions) and then use a .htaccess file to get the desired result.

-jlb


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)