| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
Rick_M71
Joined: 12 Nov 2007 Posts: 13
|
Posted: Mon Apr 14, 2008 5:41 am Post subject: Moving the forum index page to new folder? |
|
|
Summary: I want to move my forum index page from root/forum/index.php to root/index.php
I am fine with keeping all of the pages at root/forum/
I basically want the home page at root level to be the home page of the forum.
I could also just redirect the root index page to root/forum/index.php
But I'd prefer if I could do that while having the URL still appear to be root/index.php
Any suggestions? |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3128
|
Posted: Tue Apr 15, 2008 4:14 pm Post subject: Re: Moving the forum index page to new folder? |
|
|
The easy way would be to activate the virtual root option in acp and to generate / install a new .htaccess (remember in such case to delete the eventual forum/.htaccess).
This way, you would not have to move the forum files and all the rewritten urls would be redirected directly by the zero duplicate (which you must off course install and activate).
And all the rewritten urls, including the forum index would appear as if they where at the domain's root level.
This option is very handy to shorten URLs when you cannot hold phpBB file at the root level because you installed anther application there.
Now, if you prefer to move the forum files, you can. You'll just have to redirect all the forum/ dir's content at once with a simple RewriteRule.
At the beginning of your .htaccess, after :
and eventually after the RewriteBase line, add :
| Code: | | RewriteRule ^forum/?(.*)$ /$1 [L,R=301] |
You may have to mention your full url depending on your server settings :
| Code: | | RewriteRule ^forum/?(.*)$ http://www.example.com/$1 [L,R=301] |
 |
_________________
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |