folder redirect...

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
tsja
Registered User
Posts: 35
Joined: Sat Jul 22, 2006 10:58 pm

folder redirect...

Post by tsja » Wed Oct 19, 2011 12:52 pm

hello,
My forum is using the url 'domain.tld/phpbb' for serveral years now...
I would like to change this to 'domain.tld/forum'.

Is it possible that when someone use a url with 'phpbb' in it, they will be redirected to a domain with 'forum' in the url?

example:
domain.tld/phpbb/memberlist.php?mode=viewprofile&u=262585
is redirected to
domain.tld/forum/memberlist.php?mode=viewprofile&u=262585

thanks!!!
sorry for my bad englisch...

User avatar
Lumpy Burgertushie
Registered User
Posts: 66323
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: folder redirect...

Post by Lumpy Burgertushie » Wed Oct 19, 2011 3:29 pm

first you have to actually change the name of the folder from phpbb to forum.

then, you can create redirects in several ways.

google for htaccess redirect and you will get lots of info on how to do it using htaccess

php redirect will give you info on how to do it using php


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

tsja
Registered User
Posts: 35
Joined: Sat Jul 22, 2006 10:58 pm

Re: folder redirect...

Post by tsja » Mon Oct 24, 2011 9:54 am

who can/want to help me with a solution???

yes, i tried google... but not find what I need...

I need a solution that changed a part of the URL!!!

When I use the url 'domain.tld/phpbb/memberlist.php?mode=viewprofile&u=262585' the script has to change only the folder phpbb in forum ;)

Then we get: domain.tld/forum/memberlist.php?mode=viewprofile&u=262585

there are so many links with the folder phpbb in the link... to many work to make for all of them a redirect.
sorry for my bad englisch...

User avatar
Lumpy Burgertushie
Registered User
Posts: 66323
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: folder redirect...

Post by Lumpy Burgertushie » Mon Oct 24, 2011 5:59 pm

put this in the htaccess file of your website root:

Code: Select all


redirect 301 /phpbb/ http://www.mysite.com/forum/
of course you have to chagne http://www.mysite.com to whatever your actual domain name is.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

Locked

Return to “[3.0.x] Support Forum”