| |
|
| :: |
| Author |
Message |
Justin
Joined: 10 Sep 2006 Posts: 6
|
Posted: Sun Sep 10, 2006 10:50 am Post subject: new prob... no link to add sitemap to google??! |
|
|
Ok I have been plugging away at this thing for about 10 hours. I am nearly sold on what phpbb seo has to offer, specifically the topic/thread link re-writing.
I have followed the entire process a total of 2 times. The first time, I got some 404 errors and immediately replaced all of my changed files.
I smoked a cigarette or two and thought I'd try again. Well, I did find a few variations in what I had previously done, so I was pretty optomistic the results.
I re-did the entire process for the advanced rewrite and installed everything to what I believe to be the correct folders. I uploaded the new files, refreshed my board and.....Nothing. Dumbfounded, I checked to make sure that I didnt just upload my backups again. Nope, the modified files are there.
Here is the contents of my .htaccess file. I know I have access to the modrewrite with 1&1 business.
| Code: | Options +FollowSymlinks
RewriteEngine On
RewriteBase //
RewriteCond %{HTTP_HOST} ^ruleoneforum\.com$ [NC]
RewriteRule ^(.*) http://www.ruleoneforum.com/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^rule1forum\.com$ [NC]
RewriteRule ^(.*) http://www.ruleoneforum.com/$1 [QSA,L,R=301]
RewriteRule ^sitemap.xml$ sitemap.php [L]
RewriteRule ^forum-([0-9]+).xml$ sitemap.php?fid=$1 [L]
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
# CATEGORIES
RewriteRule ^.+-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^.+-vf([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^.+-vt([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^.+-vt([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
##################################################### |
I know that whatever I have done is something stupid and probably relatively easy to fix. But my brain is FRIED. I'm going to bed, hoping for a reply tomorrow! Goodnight! |
Last edited by Justin on Sun Sep 10, 2006 6:45 pm; edited 2 times in total |
|
| Back to top |
|
 |
|
 |
Justin
Joined: 10 Sep 2006 Posts: 6
|
Posted: Sun Sep 10, 2006 10:51 am Post subject: Re: new prob... no link to add sitemap to google??! |
|
|
Oh sorry for the double post, one other thing may or may not be related..
When I did the www rewrite to bring in all of the urls directly to my www address, That worked. However, the links in sitemap.php did NOT have the www.
What would cause that? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15127
|
Posted: Sun Sep 10, 2006 12:08 pm Post subject: Re: new prob... no link to add sitemap to google??! |
|
|
And welcome
But it is working : -http://www.ruleoneforum.com/post2542.html#2542
-http://www.ruleoneforum.com/getting-started-with-rule-one-vc2.html
-http://www.ruleoneforum.com/search-criteria-vf9.html
...
.htacces is thus ok.
you just need this part once though :
| Code: | RewriteCond %{HTTP_HOST} ^ruleoneforum\.com$ [NC]
RewriteRule ^(.*) http://www.ruleoneforum.com/$1 [QSA,L,R=301] |
So now it seems you had problems with the php code changes. Did you have any difficulties finding them ?
They are very basic indeed.
To do it safely, please proceed as follow :
1) mod all files locally.
2) upload includes/functions.php & common.php
3) upload includes/sessions.php : you should see profiles and post URLs rewritten on phpBB pages.
4) upload the other files one by one and test them, uploading index.php should lead to cat and forum rewritten on index, etc ...
It should work right away as the .htaccess is already up and running.
| Justin wrote: | Oh sorry for the double post, one other thing may or may not be related..
When I did the www rewrite to bring in all of the URLs directly to my www address, That worked. However, the links in sitemap.php did NOT have the www.
What would cause that? |
You just need to put the www prefix in phpBB ACP under domain name
++ |
_________________ 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 |
|
 |
Justin
Joined: 10 Sep 2006 Posts: 6
|
Posted: Sun Sep 10, 2006 5:02 pm Post subject: Re: new prob... no link to add sitemap to google??! |
|
|
HAHA.. well what a pleasant suprise to wake up to. dcz, your dedication to your community is astounding. Thank you for the very quick reply.
Ok, so the mistake - do I even want to explain? functions.php and sessions.php were dumped in the root dir, not the includes dir. Probably one of the silliest things I have done in a while. Very happy to find that that was my only problem!
One last question on the .htaccess file - you mentioned only needing to have the rewrite line in there once.
The reason I put it in there twice was to bring all of the hits from rule1forum.com or http://rule1forum.com (my secondary domain**) to my primary domain of http://www.ruleoneforum.com
Are you sure that I need to erease that extra line of code in the .htaccess file?
Thanks again dcz |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15127
|
Posted: Sun Sep 10, 2006 5:30 pm Post subject: Re: new prob... no link to add sitemap to google??! |
|
|
| Justin wrote: | HAHA.. well what a pleasant suprise to wake up to. dcz, your dedication to your community is astounding. Thank you for the very quick reply.
|
Thanks
I am sure we all need a real SEO solutions sharing community
| Justin wrote: |
Ok, so the mistake - do I even want to explain? functions.php and sessions.php were dumped in the root dir, not the includes dir. Probably one of the silliest things I have done in a while. Very happy to find that that was my only problem!
|
These are indeed the harder to find
What's important is it's working now.
| Justin wrote: |
One last question on the .htaccess file - you mentioned only needing to have the rewrite line in there once.
The reason I put it in there twice was to bring all of the hits from rule1forum.com or http://rule1forum.com (my secondary domain**) to my primary domain of http://www.ruleoneforum.com
Are you sure that I need to erease that extra line of code in the .htaccess file?
|
Sorry I did not noticed there was two different ones. You can then use the other way around to only allow one unique domain and prefix once and for all :
| Code: |
RewriteCond %{HTTP_HOST} !^www\.ruleoneforum\.com$ [NC]
RewriteRule ^(.*) http://www.ruleoneforum.com/$1 [QSA,L,R=301] |
Instead of the other two.
You can now go for mx Google sitemaps and mx Sitemaps, they are very useful.
And don't forget the last touch
++ |
_________________ 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 |
|
 |
Justin
Joined: 10 Sep 2006 Posts: 6
|
Posted: Sun Sep 10, 2006 5:39 pm Post subject: Re: new prob... no link to add sitemap to google??! |
|
|
Yeah I just experienced a strange problem with google sitemaps.
There is no longer an option in my Google Webmaster Tools menu to add sitemap?!?
I have two directorys, http://www.ruleoneforum.com (which verified by uploading an html file), and http://www.ruleoneforum.com/blog (which has verified fine in the past, but this time I was not able to verify with the html file). It was getting redirected to the http://www.ruleoneforum.com for some reason?
When I try to verify http://www.ruleoneforum.com/blog with the html file (it is properly placed), google states:
Verification status: NOT VERIFIED
Last attempt Sep 10, 2006: We've detected that your 404 (file not found) error page returns a status of 200 in the header.
Clicking http://www.ruleoneforum.com/blog/googlec16bea9add38d48a.html redirects you to http://www.ruleoneforum.com
I was able to verify the /blog dir by adding a meta tag, but this concerns me. Why the problem?
NOW, I can't even add a sitemap.. I'm researching google groups right now to see if I can find anyone else with the problem.
What could cause this?
As for the final touch, its definately going up there as soon as I get all of this handled  |
|
|
| Back to top |
|
 |
Justin
Joined: 10 Sep 2006 Posts: 6
|
Posted: Sun Sep 10, 2006 6:54 pm Post subject: Re: new prob... no link to add sitemap to google??! |
|
|
More information on my troubles..
The blog software I have installed is Wordpress, which is of course in the /blog directory.
Another strange occurance I've noticed is the following:
When I try to go to the admin control panel for wordpress, it takes me to a login page with a 404 error. However if I re-enter the same address in my address bar, the second time it works fine.
I believe the issue is in my htaccess file with one of the rewrite commands. Here it is:
| Code: | Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^ruleoneforum\.com$ [NC]
RewriteRule ^(.*) http://www.ruleoneforum.com/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^rule1forum\.com$ [NC]
RewriteRule ^(.*) http://www.ruleoneforum.com/$1 [QSA,L,R=301]
RewriteRule ^sitemap.xml$ sitemap.php [L]
RewriteRule ^forum-([0-9]+).xml$ sitemap.php?fid=$1 [L]
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
# CATEGORIES
RewriteRule ^.+-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^.+-vf([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^.+-vt([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^.+-vt([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
##################################################### |
So theres all the info I have so far. This is a recap of my problems:
Googlesitemaps can NOT find the .html link located in the /blog directory, but it is properly placed!
Googlesitemaps does not allow me to add a sitemap to either my http://www.ruleoneforum.com OR http://www.ruleoneforum.com/blog directories
I'm having login issues with my /blog directory possibly caused by a redirect. I can log in after a 2nd or 3rd attempt at loading the login page, but never the first. Haven't been able to determine when or why this occurs but I believe it may have something to do with a cookie session?
Please help!  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15127
|
Posted: Sun Sep 10, 2006 7:54 pm Post subject: Re: new prob... no link to add sitemap to google??! |
|
|
For the html in a sub folder, you need to replace
| Code: | | RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L] |
With :
| Code: | RewriteCond %{REQUEST_URI} !^blog/$
RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L] |
As well, you should replace :
| Code: | RewriteCond %{HTTP_HOST} ^ruleoneforum\.com$ [NC]
RewriteRule ^(.*) http://www.ruleoneforum.com/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^rule1forum\.com$ [NC]
RewriteRule ^(.*) http://www.ruleoneforum.com/$1 [QSA,L,R=301] |
with :
| Code: | RewriteCond %{HTTP_HOST} !^www\.ruleoneforum\.com$ [NC]
RewriteRule ^(.*) http://www.ruleoneforum.com/$1 [QSA,L,R=301] |
The Google sitemaps control panel changed a bit lately, you need to as if you add a new site, one for the root, will be for the forum, the other one mentionning the blog path, should only list the blog's URLs and be treated as a new site.
the mx Google sitemaps module is as well able to list additional content in the same index. This is going to be improved a lot in the near future.
Then you need to make sure you mx Google sitemap installation is working and outputting the correct URLs (the phpBB SEO advanced mod rewrite ones).
++ |
_________________ 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 |
|
|
|
|
|
|
|