| |
|
| :: |
| Author |
Message |
triple
Joined: 18 Dec 2007 Posts: 11 Location: San Cristobal de las Casas - Mexico
|
Posted: Mon Jan 21, 2008 11:02 am Post subject: phpbb in a subfolder, best solution for index.htm in root? |
|
|
hallo! i've my phpbb in mysite.com/forum
first i create a 301 redirect to portal.php but knowing that bot don't like redirect i create an index.htm similar to portal.php but better optimized (i think...)
but, really, which is the best solution for index.htm in root when the phpbb is in a subfolder?
thanks |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3103
|
Posted: Tue Jan 22, 2008 8:29 am Post subject: Re: phpbb in a subfolder, best solution for index.htm in roo |
|
|
| triple wrote: |
first i create a 301 redirect to portal.php but knowing that bot don't like redirect i create an index.htm similar to portal.php but better optimized (i think...)
|
Could you elaborate a bit more ? |
_________________
|
|
| Back to top |
|
 |
triple
Joined: 18 Dec 2007 Posts: 11 Location: San Cristobal de las Casas - Mexico
|
Posted: Tue Jan 22, 2008 8:52 am Post subject: Re: phpbb in a subfolder, best solution for index.htm in root? |
|
|
till twenty days ago on root there was an index.htm with a redirect 301 to forum/portal.php
| Code: | <?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.mahahual.biz/forum/portal.php" );
?> |
now there is an index.htm with contents similar to portal.php (portal.php was blocked to crawlers with robots.txt)
the site is www.mahahual.biz |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
triple
Joined: 18 Dec 2007 Posts: 11 Location: San Cristobal de las Casas - Mexico
|
Posted: Thu Jan 24, 2008 12:37 pm Post subject: Re: phpbb in a subfolder, best solution for index.htm in root? |
|
|
| dcz wrote: | Ho, but you can use HTTP 301 with bots, as long as the redirect has a proper meaning. Telling bots to use example.com/ this way rather than example.com/portal.php is not a problem at all as long as you do not massively link to example.com/portal.php on your website (eg you are using the proper link;)).
++ |
i'm really sorry, but i don't understand... i think for usual terrible english and also for real ignorance
are you saying me that 301 are a better solution? but where can i put the 301 redirect code and which is the most appropriate code? in index.htm or are you talking about a 301 server side?
and what do you think about actual solution? phpbb in folder /forum. in same folder a portal.php blocked by robots.txt and in root a similar page called index.htm . can this configuration damage spidering of my page?
other different question: in these days my hosting expire...i' m thinking about a VPS solution, also to bypass provider for some question like this. Is it important that mantainer and/or provider are from the same country of the target? My target has different priority : 1 Usa and Mexico 2 Canada and Europe. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Thu Jan 24, 2008 3:18 pm Post subject: Re: phpbb in a subfolder, best solution for index.htm in root? |
|
|
Talking about the "home page location", do you actually mean that you are macking an index.html file with the portal.php's output located in the forum/ dir ?
To me, if all you site is made out the portal and the forum, then, I'd put them both i the domain's root.
Or, you could as well se how hard it would be to move the portal.php file to the root level, could be as easy as replacing :
| Code: | | $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; |
with :
| Code: |
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/'; |
The redirecting I was talking about was example.com vs example.com/index.html
You see the same page, but with two different urls, it's just because index.html is set as default to load for the server (could be any file, like portal.php if you need it to have this priority).
So, to fix this duplicate, you need to either force one or the other, and http 301 redirect the dropped one.
EG example.com/index.html => example.com or the opposite.
My point was that doing so isn't risky if you do use the wanted url in you link when linking to the home page, like here on phpBB SEO, the page is build by index.php, but you are redirected :
http://www.phpbb-seo.com/boards/index.php
SO the matter is to prevent duplicate content, the way you actually build it does not matter at this stage.
About hosting, you should use an server with an IP from the first targeted country, us in you case. Many hosting company do offer custom ip, so you could rent a server in Europe with a us ip, but you as well want the rooting to be as smooth as possible for the majority of your user, so generally, it's better if the server is as well not too far from the target, but this is more relative than the ip, since you could find french servers being faster than us one from the us and the opposite too, but generally speaking and with decent host, physical location matters for the en user page loading time.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
triple
Joined: 18 Dec 2007 Posts: 11 Location: San Cristobal de las Casas - Mexico
|
Posted: Thu Jan 24, 2008 4:37 pm Post subject: Re: phpbb in a subfolder, best solution for index.htm in root? |
|
|
| Quote: | | Talking about the "home page location", do you actually mean that you are macking an index.html file with the portal.php's output located in the forum/ dir ? |
yes i have made a copy (not exactly a copy) of portal.php calld index.htm but i've put it in root directory (/) and not in phbb folder (forum/)
for this reason and trying to evitate duplicates i've hide portal.php with robots.txt, isn't good?
| Quote: | To me, if all you site is made out the portal and the forum, then, I'd put them both i the domain's root.
|
phpbb will remain in directory forum (/forum) 'cause it will be integrated with a jomres in main root (/)
| Quote: | Or, you could as well se how hard it would be to move the portal.php file to the root level, could be as easy as replacing :
| Code: |
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; |
with :
| Code: | | $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './forum/'; |
|
do you mean move only portal.php to main root directory or all phpbb?
and this code in which page is situated?
| Quote: | The redirecting I was talking about was example.com vs example.com/index.html
You see the same page, but with two different urls, it's just because index.html is set as default to load for the server (could be any file, like portal.php if you need it to have this priority). |
ok but from the control panel of the actual hosting i can't change default load page. I think and hope that with plesk on new vps it will be possible...
| Quote: | So, to fix this duplicate, you need to either force one or the other, and http 301 redirect the dropped one.
EG example.com/index.html => example.com or the opposite.
My point was that doing so isn't risky if you do use the wanted url in you link when linking to the home page, like here on phpBB SEO, the page is build by index.php, but you are redirected :
http://www.phpbb-seo.com/boards/index.php
SO the matter is to prevent duplicate content, the way you actually build it does not matter at this stage. |
like my http://www.mahahual.biz/forum/index.php is yet redirect to http://www.mahahual.biz/forum/
so, to transfer portal.php at the main root level i need to change the code that you have give me...
but what page is the one that i need to change?
thanks  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
triple
Joined: 18 Dec 2007 Posts: 11 Location: San Cristobal de las Casas - Mexico
|
Posted: Sun Jan 27, 2008 10:52 pm Post subject: Re: phpbb in a subfolder, best solution for index.htm in root? |
|
|
HI dcz, and thanks again dedicating me your time!
| dcz wrote: |
The code to find to be able to move portal.php to the root level is in portal.php. |
thanks i found it
| dcz wrote: | | If you plan to use another application at the domain's root level, why don't you simply build a simple html homepage for now, and leave the portal and forum to where they belong ? |
phpbb in root /forum will be the magazine and in root / i'd like to put a reservation centre with joomres. It's early for res centre, i think will be implemented in 6 month till that moment i'd like my visitors will find the mag if they digit www.mahahual.biz/
so i did i create an html similar to portal.php,
and so the question: crawlers will recognize index.htm and /forum/portal.php like duplicate? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
triple
Joined: 18 Dec 2007 Posts: 11 Location: San Cristobal de las Casas - Mexico
|
Posted: Fri Feb 01, 2008 6:47 pm Post subject: Re: phpbb in a subfolder, best solution for index.htm in root? |
|
|
would you be so gentle to spend 2 minutes and take a look if they are enough different now?
thanks a lot, far all!
domenico
www.mahahual.biz
www.mahahual.biz/forum/portal.php |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Wed Feb 06, 2008 6:06 pm Post subject: Re: phpbb in a subfolder, best solution for index.htm in root? |
|
|
Well, they are not genuine duplicate anymore, but you could go further.
When suggesting this trick, I first was thinking you could use a pretty simple html page with links to the most important part of your site as well as with some kind of description / welcome message.
It does not need to be as rich as the portal, but you get the idea now I am sure.
The most important was not to provide with a duplicate, would be a bit better in your case if you go a bit further into differentiating these two pages.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|