GYM sitemap and rss compatibility with Handyman's SEO MOD

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

Moderator: Moderators

Postby c4gamerz » Wed Nov 26, 2008 6:08 pm

ahh leave it i will install your seo mod. Thanks for ur help :)
c4gamerz
 
Posts: 43
Joined: Wed Nov 26, 2008 11:18 am

Advertisement

Postby c4gamerz » Wed Nov 26, 2008 6:10 pm

shud i install mixed or advance version?
c4gamerz
 
Posts: 43
Joined: Wed Nov 26, 2008 11:18 am

Postby SeO » Wed Nov 26, 2008 7:18 pm

It will be the same with any mod, if you want rewritten urls for GYM sitemap links (eg sitemaps, rss feeds and news), you'll have to turn URL rewriting on for it and implement the rewriterules as explained in the install, do not confuse between the url the mod displays to the forum, and the url the mod displays to himself.
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby c4gamerz » Thu Nov 27, 2008 4:44 am

no actually that seo mod is no longer supported by handyman and their are various fixes floating in the topic but still a lot of bugs has to be fixed so its better to move to your seo mod as you are hyper active here :)
c4gamerz
 
Posts: 43
Joined: Wed Nov 26, 2008 11:18 am

Postby c4gamerz » Thu Nov 27, 2008 5:46 am

k i am migrating to your mod just suggest me which version of your mod would be better in my case and please tell me what rules shud i add in .htaccess.
c4gamerz
 
Posts: 43
Joined: Wed Nov 26, 2008 11:18 am

Postby c4gamerz » Thu Nov 27, 2008 5:50 am

i am also using advanced meta mod ver 1.0.1 so shud i remove it too?

edit: k i found a similar mod of yours so i will use that and also i decided to use advanced version of your mod. In .htaccess i will leave my existing rules and will install zero duplicate to migrate.
c4gamerz
 
Posts: 43
Joined: Wed Nov 26, 2008 11:18 am

Postby SeO » Thu Nov 27, 2008 8:17 am

The meta tag mod you are using is quite a bad mod, serving the same meta on all pages is just not a good thing to do, I'd actually consider it as worst than no meta at all, so yes, I encourage you to start using our dynamic meta tag mod.

For your migration, I encourage you to set up a test install and then choose your urls.
Once done, post here your new .htaccess so we validate the rewriterules to keep to migrate properly before you go online with it.
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby c4gamerz » Thu Nov 27, 2008 1:43 pm

when i was editing files i found a error in ur text file it says in viewtopic.php

Code: Select all
#
#-----[ FIND ]------------------------------------------
#

   $redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id");

#
#-----[ REPLACE WITH ]------------------------------------------
#

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   [b]//$redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id");[/b]
   // www.phpBB-SEO.com SEO TOOLKIT END


check code in bold tags i think // shud be removed or else it wont work!!
c4gamerz
 
Posts: 43
Joined: Wed Nov 26, 2008 11:18 am

Postby c4gamerz » Thu Nov 27, 2008 2:33 pm

k i installed advanced seo mod here are my settings

Code: Select all
http://i34.tinypic.com/29viccw.png


i am getting this errors

Code: Select all
http://i37.tinypic.com/5b1jpg.png


and here is .htaccess screenshot

Code: Select all
http://i38.tinypic.com/2eezpxe.png


it says it will create htaccess in islamicteachings.org but my old htaccess (which is still present with all old .htaccess rules) is in forum directory and i have already posted its content in first post so what shud i do now?
c4gamerz
 
Posts: 43
Joined: Wed Nov 26, 2008 11:18 am

Postby c4gamerz » Thu Nov 27, 2008 6:06 pm

k i installed a test board

islamicteachings.org/test/

here is my new .htaccess

Code: Select all
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
ErrorDocument 400 /forum/error.php?mode=400
ErrorDocument 401 /forum/error.php?mode=401
ErrorDocument 403 /forum/error.php?mode=403
ErrorDocument 404 /forum/error.php?mode=404
ErrorDocument 500 /forum/error.php?mode=500

<Files .htaccess>
Order Allow,Deny
Deny from All
</Files>

RewriteEngine on

Rewriterule ^(.+)-f([0-9]*).html-(.+)$            ./viewforum.php?f=$2&$3
Rewriterule ^(.+)-(t|p)([0-9]*).html-(.+)$         ./viewtopic.php?$2=$3&$4
Rewriterule ^(.+)-f([0-9]*)s([0-9]*).html-(.+)$      ./viewforum.php?f=$2&start=$3&$4
Rewriterule ^(.+)-(t|p)([0-9]*)s([0-9]*).html-(.+)$   ./viewtopic.php?$2=$3&start=$4&$5

Rewriterule ^(.+)-f([0-9]*).html$               ./viewforum.php?f=$2&$3
Rewriterule ^(.+)-(t|p)([0-9]*).html$            ./viewtopic.php?$2=$3&$4
Rewriterule ^(.+)-f([0-9]*)s([0-9]*).html$         ./viewforum.php?f=$2&start=$3&$4
Rewriterule ^(.+)-(t|p)([0-9]*)s([0-9]*).html$      ./viewtopic.php?$2=$3&start=$4&$5

# You may need to un-comment the following lines
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
# REWRITE BASE
RewriteBase /test/
# 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 ^test\.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
#####################################################


its not working :S

edit: lol i forgot to install modified files
**htaccess updated****
i used settings mentioned in first screenshot i posted!!
c4gamerz
 
Posts: 43
Joined: Wed Nov 26, 2008 11:18 am

Postby c4gamerz » Thu Nov 27, 2008 6:43 pm

i want .html urls just for forum and topics links advance topics etc. Member, team leaders, search etc shud be in their original way. please help me in fixing htaccess rules.
c4gamerz
 
Posts: 43
Joined: Wed Nov 26, 2008 11:18 am

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

c4gamerz wrote:when i was editing files i found a error in ur text file it says in viewtopic.php

Code: Select all
#
#-----[ FIND ]------------------------------------------
#

   $redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id");

#
#-----[ REPLACE WITH ]------------------------------------------
#

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   [b]//$redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id");[/b]
   // www.phpBB-SEO.com SEO TOOLKIT END


check code in bold tags i think // shud be removed or else it wont work!!


I cannot find this typo in the install files.

About the advanced SEO url mod implementation, I suggest you to first work on it without your previous rewriterules in the .htaccess.

Once you'll have made up your mind about the setting to use (what you ask about member profile rewriting and basic searches, such as user posts, are handled though options in ACP), I'll help you for the required rewriterules to use to properly redirect.
Not that the old rewriterules should be place at the end of the phpBB3 .htaccess in all cases.

++
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: 21382
Joined: Fri Apr 28, 2006 9:03 pm

Postby c4gamerz » Fri Nov 28, 2008 10:41 am

k i edited htaccess removed all old rules, it looks like everything is working accept html urls are not showing in viewtopic and i think it must be because of the wrong information in the text file you guyz provided which i already mentioned before

Code: Select all
#
#-----[ FIND ]------------------------------------------
#

   $redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id");

#
#-----[ REPLACE WITH ]------------------------------------------
#

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   //$redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;t=$topic_id");
   // www.phpBB-SEO.com SEO TOOLKIT END


there is no difference between that find and replace with code except // is added in replace with code! plz fix it as soon as possible.
c4gamerz
 
Posts: 43
Joined: Wed Nov 26, 2008 11:18 am

Postby c4gamerz » Fri Nov 28, 2008 10:53 am

also topic urls on index are not working properly too

see
http://islamicteachings.org/test/

and how can i remove forum and topic ids like

http://islamicteachings.org/test/phpbb- ... t4917.html

shud be

http://islamicteachings.org/test/phpbb- ... panel.html

is it possible? i enabled Forum URL caching and Forum ID Removing but its not working.
c4gamerz
 
Posts: 43
Joined: Wed Nov 26, 2008 11:18 am

Postby c4gamerz » Fri Nov 28, 2008 11:24 am

k i forgot to hit submit on that cache menu now forum ids are removed properly and viewforum links are working too now but last post links on index and viewforum are not working it looks like

http://islamicteachings.org/test/post5047.html#p5047

maybe its because i am using "Last Posts Titles" mod ?

here is the mod

Code: Select all
Open: includes/functions_display.php

Find

         $last_post_subject = $row['forum_last_post_subject'];

Replace With

         $last_post_subject = censor_text($row['forum_last_post_subject']);

Find

         'LAST_POST_SUBJECT'      => censor_text($last_post_subject),

Replace With

         'LAST_POST_SUBJECT'      => $last_post_subject,
         'LAST_POST_SHORTENED_SUBJECT'   => (utf8_strlen($last_post_subject) > 26) ? truncate_string($last_post_subject, 25) . "\xE2\x80\xA6" : $last_post_subject,


how to make it compatible with your mod ?

hmm when i tried to search it gives same urls like i am getting on index and viewforum

http://islamicteachings.org/test/post56 ... slam#p5620

its really confusing...
c4gamerz
 
Posts: 43
Joined: Wed Nov 26, 2008 11:18 am

PreviousNext

Return to GYM Sitemaps & RSS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests