2 Slashes in Link

The GYM Sitemaps & RSS module for phpBB. Sitemaps and RSS feeds for Google Yahoo! and MSN Live, support, add ons etc ...

Moderator: Moderators

2 Slashes in Link

Postby wodkatonic » Thu Nov 27, 2008 9:01 pm

Hi,
after installed this Mod all looks good, but some links dont work. When i click on Sitemap i become this link:

-http://www.domain.com//maps

There are two backslashes and i dont know why.

The same is when i click on the sitemap links for a forum.

-http://www.domain.com/maps/forum//theme-f5

Can someone help me please.

Regards, wodkatonic
wodkatonic
 
Posts: 4
Joined: Thu Nov 27, 2008 7:03 pm

Advertisement

Postby dcz » Fri Nov 28, 2008 9:28 am

This means that you are still running a 0.4.4 or lower mod rewrite, 0.4.6 has become "path aware" and last two version of GYM where designed after it.

So update the url rewriting mod and everything should work as expected.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby wodkatonic » Sun Nov 30, 2008 10:44 am

Thank you for your help. I updated SEO Advanced. But the same result so far.

My Versions now :

phpbb3 - 3.0.2
SEO Advanced : 0.4.6
GYM Sitemaps : 2.0 RC2

After the Update SEO Advanced i become an error (clicking on Post at Index) when a User logged in. The error is not there when it is a guest.

Error like this:
Code: Select all
Fatal error: Call to undefined function: generate_link_hash() in /var/www/vhosts/domain.com/httpdocs/viewtopic.php on line 648


The Gym Sitemap Mudule works here :
SitemapIndex
RSS Feed
Channel list

But these links made problems all the time :
News
Sitemap

The News+Sitemap link shown (when you go with mouse over the link) is right i think : http://www.domain.com/maps/

But when i click on it, some time later, it get an output in the Browser like
: http://www.domain.com//maps

Then i get an error in the browser, that he has an infinite series and cant end this order or so. What is wrong ?
Here is my .htaccess :
Code: Select all
# Lines That should already be in your .htacess
    <Files "config.php">
    Order Allow,Deny
    Deny from All
    </Files>
    <Files "common.php">
    Order Allow,Deny
    Deny from All
    </Files>

    # You may need to un-comment the following line
    # Options +FollowSymlinks
    # REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
    RewriteEngine On
    # REWRITE BASE
    RewriteBase /
    # HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

    #####################################################
    # PHPBB SEO REWRITE RULES - ADVANCED
    #####################################################
    # AUTHOR : dcz www.phpbb-seo.com
    # STARTED : 01/2006
    #################################
    # FORUMS PAGES
    ###############
    # FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
    # RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
    # FORUM
    RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER
    RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
    # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
    RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM
    RewriteRule ^([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
    # PROFILES SIMPLE
    RewriteRule ^member([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
    # USER MESSAGES SIMPLE
    RewriteRule ^member([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
    # GROUPS SIMPLE
    RewriteRule ^group([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
    # POST
    RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
    # ACTIVE TOPICS
    RewriteRule ^active-topics(-([0-9]+))?\.html$ /search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
    # UNANSWERED TOPICS
    RewriteRule ^unanswered(-([0-9]+))?\.html$ /search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
    # NEW POSTS
    RewriteRule ^newposts(-([0-9]+))?\.html$ /search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
    # THE TEAM
    RewriteRule ^the-team\.html$ /memberlist.php?mode=leaders [QSA,L,NC]
    # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

    # FORUM WITHOUT ID & DELIM
    # THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([a-z0-9_-]+)(-([0-9]+))\.html$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([a-z0-9_-]+)\.html$ /viewforum.php?forum_uri=$1 [QSA,L,NC]
    # END PHPBB PAGES
    #####################################################
#####################################################
# GYM Sitemaps & RSS
# Global channels
RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$ /gymrss.php?channels&$2&$4&$6 [QSA,L,NC]
# HTML Global news & map
RewriteRule ^(news|maps)/?(page([0-9]+)\.html)?$ /map.php?$1&start=$3 [QSA,L,NC]
# END GYM Sitemaps & RSS
#####################################################
#####################################################
# GYM Sitemaps & RSS
# MTML Module additional modes
RewriteRule ^(news|maps)/([a-z0-9_-]+)(/([a-z0-9_-]+))?/?(page([0-9]+)\.html)?$ /map.php?$2=$4&$1&start=$6 [QSA,L,NC]
# Main feeds & channels
RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?(/([a-z0-9_-]+))?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$9=$8&$2&$4&$6&gzip=$10 [QSA,L,NC]
# Module feeds
RewriteRule ^[a-z0-9_-]*-[a-z]+([0-9]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$8=$1&$3&$5&$7&gzip=$9 [QSA,L,NC]
# Module feeds without ids
RewriteRule ^([a-z0-9_-]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?nametoid=$1&$3&$5&$7&modulename=$8&gzip=$9 [QSA,L,NC]
# Google SitemapIndex
RewriteRule ^sitemapindex\.xml(\.gz)?$ /sitemap.php?gzip=$1 [QSA,L,NC]
# Module cat sitemaps
RewriteRule ^[a-z0-9_-]+-([a-z]+)([0-9]+)\.xml(\.gz)?$ /sitemap.php?module_sep=$1&module_sub=$2&gzip=$3 [QSA,L,NC]
# Module sitemaps
RewriteRule ^([a-z0-9_]+)-([a-z0-9_-]+)\.xml(\.gz)?$ /sitemap.php?$1=$2&gzip=$3 [QSA,L,NC]
# END GYM Sitemaps & RSS
#####################################################

wodkatonic
 
Posts: 4
Joined: Thu Nov 27, 2008 7:03 pm

Postby SeO » Sun Nov 30, 2008 11:30 am

The error tells that you did not update phpBB to 3.0.3, so do it.

I'm as well wondering if you properly updated the phpbb_seo/phpbb_seo_class.php file. Please make sure about it.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby wodkatonic » Sun Nov 30, 2008 11:40 am

I really havent update the phpbb_seo_class.php file.
I did and News and Sitemap are working fine. Thanks a lot for this help so far.
I will try now to update the phpbb3 to 3.03 and hope the "Fatal Error" is gone after this. I will tell when i am finished updating.
wodkatonic
 
Posts: 4
Joined: Thu Nov 27, 2008 7:03 pm

Postby wodkatonic » Sun Nov 30, 2008 12:43 pm

Well done ! :D
All things working now at the first look. Must say that all is for free, the mods and the super support here. Really great guys here !

The technic is working, but i want to give google a sitemap now.

Is it the "SitemapIndex" file that must work with google ?
In the "SitemapIndex" i cant see any of my post, only my domain is in the list. No post, categories and subforums. Sorry for my bad english :oops:
wodkatonic
 
Posts: 4
Joined: Thu Nov 27, 2008 7:03 pm

Postby SeO » Mon Dec 01, 2008 8:53 am

The sitemapindex is listing sitemaps which are listing links to your topics and forums.
It's the only file to submit once and for all ;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm


Return to GYM Sitemaps & RSS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests