my forums was redirct
when it was like that
-http://www.paramegsoft.com/forum/forum77
to
-http://www.paramegsoft.com/forum/forum77/
now it cant doing
Moderator: Moderators

# FORUM
RewriteRule ^forum([0-9]+)/?(page([0-9]+)\.html|-([0-9]+)/?)?$ viewforum.php?f=$1&start=$3 [QSA,L,NC]
mhmdkhamis wrote:another problem dcz
my forums was redirct
when it was like that
-http://www.paramegsoft.com/forum/forum77
to
-http://www.paramegsoft.com/forum/forum77/
now it cant doing

dcz wrote:mm, the ending slash should match.
You could try :
- Code: Select all
# FORUM
RewriteRule ^forum([0-9]+)/?(page([0-9]+)\.html|-([0-9]+)/?)?$ viewforum.php?f=$1&start=$3 [QSA,L,NC]
instead.
++

mhmdkhamis wrote:mhmdkhamis wrote:another problem dcz
my forums was redirct
when it was like that
-http://www.paramegsoft.com/forum/forum77
to
-http://www.paramegsoft.com/forum/forum77/
now it cant doing
what about it dcz
$page_string = preg_replace('`(/)(&|\?)start=([0-9]+)`i', $phpbb_seo->seo_delim['start'] . '\\3\\1', $page_string);


SeO wrote:The thing is I'm not sure anymore about what are you willing to do.
The code change you mention was only an hint to be able to keep your custom pagination standard, which was due to the fact your went online with a private beta/test version of the mod.
My advice is to go back to the standard pagination or to start using .html instead of / as your forum url suffixes, since this would only mean to redirect your forums, not the topic and that it would make things a lot easier for the future.
This would only imply few rewriterules in your .htaccess to allow the redirecting. I'd be happy to provide you with the rewriterules, but I need to clearly understand what are your plan.
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^forum/.*/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/cat([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/forum([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum/forum([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/topic([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/topic([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]
#####################################################
#####################################################
# PHPBB SEO REWRITE RULES - SIMPLE
#####################################################
# 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/forum\.html$ /forum/index.php [QSA,L,NC]
# FORUM
RewriteRule ^forum/forum([0-9]+)(-([0-9]+))?/$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^forum/forum([0-9]+)/topic(-([0-9]+))?\.html$ /forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^forum/announces/topic([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^forum/[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^forum/the-team\.html$ /forum/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
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^forum/[a-z0-9_-]+(-([0-9]+))?/$ /forum/viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
#####################################################



SeO wrote:Yes, it's the regular standard.
But you currently have an error going on, seems that you miss the phpbb_seo/phpbb_seo_class.php file.
Please confirm it's the one you'll be using and I'll give your the rewriterule to mod in order to redirect the previous forumxx/ URLs to forumxx.html.

mhmdkhamis wrote:it redirct already dcz
# FORUM
RewriteRule ^forum/forum([0-9]+)(-([0-9]+))?/$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC] # FORUM
RewriteRule ^forum/forum([0-9]+)(-([0-9]+))?(\.html|/)$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC] 
SeO wrote:mhmdkhamis wrote:it redirct already dcz
Looks like not.
It's a 404, but I cannot really check, because you board is currently disabled (have you deleted the install/ folder after you updated ?).
To redirect the forumxx/ to forumxx.html pagination included, you just need to replace :
- Code: Select all
# FORUM
RewriteRule ^forum/forum([0-9]+)(-([0-9]+))?/$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
With :
- Code: Select all
# FORUM
RewriteRule ^forum/forum([0-9]+)(-([0-9]+))?(\.html|/)$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
The zero duplicate will do the rest.


SeO wrote:And it is working
http://www.paramegsoft.com/forum/forum1/
http://www.paramegsoft.com/forum/forum1-64/

Users browsing this forum: No registered users and 5 guests