Topic: Change URL /forum/2 to /forum

Hi,

I'm new to PunBB, and PHP in general. Yesterday I (actually my friend) got PunBB 1.3 running, and it works great. smile

I wonder if there's any way to change the URL "forum/2" to just "/forum".
(Version 1.3, Folder Based URL scheme).

The site has only two forums, and the first one is for admins etc., so regular users can't see it anyway. It would be convenient if http://mysite/forum led to the main forum (PunBB is "installed under" http://mysite/). I'm going to modify index.php to show some other content than the forum index.

Thanks in advance.

Re: Change URL /forum/2 to /forum

If the forum is brand new, you could simply delete all the MySQL tables and move the PunBB files to /forum/ on your server. Also, remember to delete 'config.php'.

Re: Change URL /forum/2 to /forum

Unfortunately the database isn't new, the site has been running PunBB 1.2.9 for a while. Instead of upgrading, we decided to create a "new" forum and move the database.

Moving the files to /forum wouldn't help, as far as I know. If we take PunBB's forum as an example, /forum would be http://punbb.informer.com/forums/, but I want /forum to be http://punbb.informer.com/forums/forum/48/punbb-news/.

Isn't there a way to modify forum_urls.php and rewrite_rules.php to change /forum/2 to /forum?

Re: Change URL /forum/2 to /forum

Oh... so... /forum/2 isn't a physical path? It's being redirected by mod_rewrite?

Re: Change URL /forum/2 to /forum

Garciat wrote:

Oh... so... /forum/2 isn't a physical path? It's being redirected by mod_rewrite?

Ah, sorry about that. Yes, it's a redirect (as far as I understand anyway). As I said, I use "Folder based" as URL scheme.

Re: Change URL /forum/2 to /forum

By the way, this is a 1.3 issue. Could anyone please help me move the thread to this section?

Re: Change URL /forum/2 to /forum

If I understand you correctly, you want "<FORUM_URL>/forum"  redirect user to some existing forum?

Re: Change URL /forum/2 to /forum

Slavok wrote:

If I understand you correctly, you want "<FORUM_URL>/forum"  redirect user to some existing forum?

That's right.