Hey dcz,
I have a problem with .htaccess rewrite rules syntax which I suspect is causing the search engines not to cache and index my pages although I setup a Google sitemap and from the user point of view the pagination looks fine.
My hosting provider support team told me my syntax for the .htaccess rewrite rules are not correct and maybe confusing for the search engines.
Something is wrong with the pagination as I use a $ sign which means end of string but I actually have parameters after the .html like:
http://www.domain.com/3-vf4.html?start=100
This is the .htaccess file:
Options +FollowSymlinks
DirectoryIndex portal.php
RewriteEngine On
RewriteBase /
#Make sure the www is present
RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC]
RewriteRule ^(.*) http://www.domain.com/$1 [QSA,R=301,L]
# phpBB
RewriteRule ^sitemap_index.xml$ /sitemap.php [L]
RewriteRule ^forum-sitemap-([0-9]+).xml$ /sitemap.php?fid=$1 [L]
RewriteRule ^sitemap-forum.xml$ /sitemap.php?forum [L]
# Linkdb
RewriteRule ^directory.html$ linkdb.php
RewriteRule ^directory-([0-9]+).html$ linkdb.php?action=category&cat_id=$1
RewriteRule ^directory-([0-9]+).html&start=([0-9]+)$ linkdb.php?action=category&cat_id=$1&sort_method=link_time&sort_order=DESC&start=$2
#####################################################
# 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 ^.+-vp([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
RewriteRule [.]*-ac([0-9]*) /album_cat.php?%{QUERY_STRING}&cat_id=$1
RewriteRule [.]*-at([0-9]*) /album_thumbnail.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-apic([0-9]*) /album_pic.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-apm([0-9]*) /album_picm.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-full-asp([0-9]*) /album_showpage.php?full=&pic_id=$1
RewriteRule [.]*-asp([0-9]*) /album_showpage.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-aper([0-9]*) /album_personal.php?%{QUERY_STRING}&user_id=$1
RewriteRule [.]*-dc([0-9]*) /dload.php?%{QUERY_STRING}action=category&cat_id=$1
RewriteRule [.]*-df([0-9]*) /dload.php?%{QUERY_STRING}action=file&file_id=$1
RewriteRule [.]*-kbc([0-9]*) /kb.php?%{QUERY_STRING}mode=cat&cat=$1
RewriteRule [.]*-kba([0-9]*) /kb.php?%{QUERY_STRING}mode=article&k=$1
RewriteRule [.]*-kbsmp /kb.php?mode=stats&stats=mostpopular
RewriteRule [.]*-kbstr /kb.php?mode=stats&stats=toprated
RewriteRule [.]*-kbsl /kb.php?mode=stats&stats=latest
RewriteRule [.]*-pbc([0-9]*) /kb.php?%{QUERY_STRING}mode=cat&cat=$1
RewriteRule [.]*-pa([0-9]*) /kb.php?%{QUERY_STRING}mode=article&k=$1
RewriteRule [.]*-psmp /kb.php?mode=stats&stats=mostpopular
RewriteRule [.]*-pstr /kb.php?mode=stats&stats=toprated
RewriteRule [.]*-pbsl /kb.php?mode=stats&stats=latest
##############################
Please advise how should I write the pagination rewrite rules syntax correctly ..

English |
French
