phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
WORKS but mod rewrite issue (phpbb2plus) :(
Goto page Previous  1, 2
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » GYM Sitemaps
::  
Author Message
pashmaki



Joined: 12 Jan 2008
Posts: 11

WORKS but mod rewrite issue (phpbb2plus) :(Posted: Wed Jan 16, 2008 5:50 pm    Post subject: Re: WORKS but mod rewrite issue (phpbb2plus) :(

Oh I see, but the sitemap index shows incorrect urls, because when you click one of the sitemaps, it shows a page not found.
Although i can get to the different sitemaps by typing: sitemap.php?forum=67 etc.


Here's my complete .htaccess file:

Code:

DirectoryIndex index.html index.htm portal.php index.php

############################################################

RewriteEngine On

############################################################

# prevent access from santy webworm a-e
RewriteCond %{QUERY_STRING} ^(.*)highlight=\%2527 [OR]
RewriteCond %{QUERY_STRING} ^(.*)rush=\%65\%63\%68 [OR]
RewriteCond %{QUERY_STRING} ^(.*)rush=echo [OR]
RewriteCond %{QUERY_STRING} ^(.*)echr(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)esystem(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)union(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)UNION(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)alert\(document(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)SQL_INJECTION(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)wget\%20
RewriteRule ^.*$ http://127.0.0.1/ [R,L]

# prevent pre php 4.3.10 bug
RewriteCond %{HTTP_COOKIE}% s:(.*):\%22test1\%22\%3b
RewriteRule ^.*$ http://127.0.0.1/ [R,L]

# prevent perl user agent (most often used by santy)
RewriteCond %{HTTP_USER_AGENT} ^lwp.* [NC]
RewriteRule ^.*$ http://127.0.0.1/ [R,L]

#########################################################
# Mod Rewrite Rules for Static URLs can be found in this file.
#
# You have to set the correct Path to your Forum here otherwise this will not work !
# Just change the "YOUR_PATH" in the below code to the path your Forum uses.
# For example if your Forum can be reached at http://www.myforum.com/phpBB2/ you have
# to set the path to this
#
# RewriteBase /phpBB2/
#              ^^^^^^
#
# If your Forum can be reached at http://www.myforum.com you can delete the path part
#
# RewriteBase /
#
# After making all needed changes in this file rename it to .htaccess and delete the original
# .htaccess file
############################################################

RewriteBase /v1/phpBB2/

# extended rewriting only for .html [thx to Caterham]
RewriteRule !\.html$ - [L]

RewriteRule ^forums\.html$ index.php [L]

RewriteRule ^forumc([0-9]*)\.html$ index.php?c=$1 [L]
RewriteRule ^forumc([0-9]*),(.*)\.html$ index.php?c=$1 [L]

RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*)\.html$ viewforum.php?f=$1&topicdays=$2&start=$3 [L]
RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*),(.*)\.html$ viewforum.php?f=$1&topicdays=$2&start=$3 [L]

RewriteRule ^forum([0-9]*)\.html$ viewforum.php?f=$1 [L]
RewriteRule ^forum([0-9]*),(.*)\.html$ viewforum.php?f=$1 [L]

RewriteRule ^ptopic([0-9]*)\.html$ viewtopic.php?t=$1&view=previous [L]
RewriteRule ^ntopic([0-9]*)\.html$ viewtopic.php?t=$1&view=next [L]

RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*)\.html$ viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L]
RewriteRule ^ftopic([0-9]*)\.html$ viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L]
RewriteRule ^ftopic([0-9]*)-([0-9]*)\.html$ viewtopic.php?t=$1&start=$2 [L]
RewriteRule ^ftopic([0-9]*)\.html$ viewtopic.php?t=$1 [L]
RewriteRule ^fpost([0-9]*)\.html$ viewtopic.php?p=$1 [L]

#########################################################
# GYM SITEMAPS AND RSS REWRITE RULES         #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
RewriteRule ^rss-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /rss.php?$1&$2 [L]
# RSS forums
RewriteRule ^forums-rss-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /rss.php?forum&c&$1&$2 [L]
# RSS all
RewriteRule ^([a-zA-Z0-9_-]+)-rss([0-9]*)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /rss.php?$1=$2&$3&$4 [L]
# RSS forum topics
RewriteRule ^.+-rf([0-9]+)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /rss.php?forum=$1&$2&$3 [L]
# SitemapIndex
RewriteRule ^sitemaps\.(xml(\.gz)?)$ /sitemap.php [L]
# Sitemap modules
RewriteRule ^([a-zA-Z0-9_-]+)-sitemap\.(xml(\.gz)?)$ /sitemap.php?$1 [L]
# Forum Sitemaps
RewriteRule ^.+-gf([0-9]+)\.(xml(\.gz)?)$ /sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
RewriteRule ^urllist\.(txt(\.gz)?)$ /urllist.php [L]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES      #
#########################################################
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

WORKS but mod rewrite issue (phpbb2plus) :(Posted: Fri Jan 18, 2008 11:25 am    Post subject: Re: WORKS but mod rewrite issue (phpbb2plus) :(

pashmaki wrote:
Oh I see, but the sitemap index shows incorrect urls, because when you click one of the sitemaps, it shows a page not found.
Although i can get to the different sitemaps by typing: sitemap.php?forum=67 etc.

What's hapening is jut that the .htaccess does not work yet for the modules links.
I'm not 100% sure, but, the problem could come from this rewriterule :
Code:
# extended rewriting only for .html [thx to Caterham]
RewriteRule !\.html$ - [L]


Try without it.

++

_________________
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
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » GYM Sitemaps
Page 2 of 2 Goto page Previous  1, 2

Navigation Similar Topics

Jump to: