| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
btc
Joined: 14 Jul 2006 Posts: 3
|
Posted: Sat Jul 15, 2006 12:06 am Post subject: google sitemap at root directory. |
|
|
dcv,
I'd like to thank you for getting this out. I often pondered over this in the past. I spoke with you at phpbb community forums, and I stated I had issues (comprehension) issues installing a site map in the root directory. I spent several hours reading, and it seems I have more trouble with the simple things, if you know where I'm coming from.
So like I'm a 4 year old, can you please describe the process of using this great mod on a root directory. I full access to ftp, phpmyadmin ect.'
If I provide an example, we'll use http://www.example.com as the root. The forums current site map is at http://www.example.com/forum/sitemap.php
I would like to keep the current sitemao in the forum directory, and create a separate one at the root.
I'm haven't used any url rewrite mods, or the like.
Thank's and your welcome at my forum anytime and I can teach yoiu abhout what I know about. All else said I';m proud I used open source, everyone has been terrific.
Likw I'm a 4 year old,
~BTC |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
Posted: Sat Jul 15, 2006 12:37 am Post subject: Re: google sitemap at root directory. |
|
|
And Welcome
So, there may be some confusion here.
The sitemap.php file is the on that can be installed at the root level very easily, but this won't change nothing more than allowing you to add url listing from outside of your phpBB folder (starting from root) as per Google Sitemaps rules.
But then, you have to actually list and add to the mx Google sitemaps module the extra content.
Mx Google sitemaps is designed to do so quite easily, but you have to work a bit.
So first, to move the sitemap.php file, well, move it to root (there should not be two sitemap.php file) and then open it and seach for :
| Code: | // YOU HAVE TO SET THE CORRECT PATH FOR PHPBB IF YOU WANT
// TO USE THIS SITEMAP SYSTEM OUTSIDE OF THE PHPBB FOLDER
// AND TO LOOK AT LINE 72 too ;-)
$mx_root_path = $module_root_path2 = $module_root_path = $phpbb_root_path = ''; |
And replace with :
| Code: | // YOU HAVE TO SET THE CORRECT PATH FOR PHPBB IF YOU WANT
// TO USE THIS SITEMAP SYSTEM OUTSIDE OF THE PHPBB FOLDER
// AND TO LOOK AT LINE 72 too ;-)
$mx_root_path = $module_root_path2 = $module_root_path = $phpbb_root_path = 'forum/'; |
If forum/ is the correct phpBB install folder name.
Then search for :
| Code: | // Comment this line if you put your sitemap in the root folder
// and phpbb installed in a subfolder.
$root_url = ($phpbb) ? $server_url : $root_url; |
and replace with :
| Code: | // Comment this line if you put your sitemap in the root folder
// and phpbb installed in a subfolder.
//$root_url = ($phpbb) ? $server_url : $root_url; |
Done, you can submit http://www.example.com/sitemap.php after you trashed the old one in your Google account if was submitted.
Then, before doing this, you could install the last version, 1.0.1, as it's been released, the changes will remain the same to move the sitemap.php file.
Then you'll be able to use this nice plug-gin, that will allow to easily add extra URL listing showing up in the same sitemapIndex (sitemap.php).
Please ask for support on installing the mx Google sitemaps on the release thread.
Once done, do not submit if you which to implement one of the phpBB SEO mod Rewrites, we'll need it to work before the sitemaps is submitted, it's better this way, but you can start installing it while you decide to go or not for mod rewrite and which one.
++ |
_________________ 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 |
|
 |
btc
Joined: 14 Jul 2006 Posts: 3
|
Posted: Sat Jul 15, 2006 5:54 am Post subject: Re: google sitemap at root directory. |
|
|
Excellent reply!
1 question, if I renamed the "phpbb" folder to "forum" would I change the code to "forum" instead of phpbb?
Also, to clarify I physically move the forum/sitemap.php to .com/sitemap.php and do not have one in the forum folder at all?
Thank's again,
~BTC |
|
|
| Back to top |
|
 |
btc
Joined: 14 Jul 2006 Posts: 3
|
Posted: Sat Jul 15, 2006 6:14 am Post subject: Re: google sitemap at root directory. |
|
|
It's all good! I don't want to get to fancy with rewrites. The hearts in the original, and everything I could ask for.
You are one of the most helpful people I've met.
Thank you and God Bless,
~BTC |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |